:root {
    --auth-primary: #0f6e9c;
    --auth-primary-dark: #14529d;
    --auth-soft: #e8f2f8;
    --auth-ink: #1d2b36;
    --auth-muted: #5d6d7a;
    --auth-line: #dbe4eb;
    --auth-bg: #f3f6f9;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

.auth-brand img {
    display: block;
    width: 190px;
    height: auto;
}

.auth-home {
    color: var(--auth-primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-home:hover {
    text-decoration: underline;
}

.auth-main {
    display: flex;
    justify-content: center;
    padding: 34px 20px 70px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 30px 32px 28px;
    border: 1px solid var(--auth-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 48, 65, .08);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.auth-lead {
    margin: 0 0 22px;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 600;
}

.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
}

.auth-field input:focus {
    outline: 2px solid var(--auth-primary);
    outline-offset: 1px;
    border-color: var(--auth-primary);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--auth-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-submit:hover {
    background: var(--auth-primary-dark);
}

.auth-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #f0c2bd;
    border-radius: 8px;
    background: #fff4f2;
    color: #9b2c20;
    font-size: 13px;
}

.auth-note {
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
}

@media (max-width: 520px) {
    .auth-header {
        padding: 16px;
    }

    .auth-brand img {
        width: 160px;
    }

    .auth-card {
        padding: 22px 18px;
    }
}
