/* login.php — page styles. Uses the design tokens from custom.css. */
.auth-page {
    padding: 48px 0 64px;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 32px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: .9rem;
}

.auth-alert i { margin-top: 2px; }

.auth-alert--error {
    background: #fdecec;
    color: #a52a2a;
    border: 1px solid #f5c2c2;
}

.auth-alert--success {
    background: #e8f7ee;
    color: #1e7a45;
    border: 1px solid #bfe5cf;
}

.auth-form label {
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.auth-field {
    position: relative;
}

.auth-field__icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #93a1a8;
    pointer-events: none;
}

.auth-field .form-control {
    height: 42px;
    padding-left: 36px;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}

.auth-field .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(5, 195, 221, .18);
}

.auth-field #passwordInput {
    padding-right: 42px;
}

.auth-field__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: #93a1a8;
    cursor: pointer;
}

.auth-field__toggle:hover,
.auth-field__toggle:focus-visible {
    color: var(--brand-dark);
    background: var(--surface-2);
    outline: none;
}

.auth-link {
    color: var(--brand-dark);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.auth-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px;
}

.auth-submit {
    height: 44px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
}

.auth-card__foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-soft);
}

@media (max-width: 575px) {
    .auth-page { padding: 24px 0 40px; }
    .auth-card { padding: 24px 20px 20px; }
}
