/* Auth forms — login/register */

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.field-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888888;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease;
    outline: none;
}

.field input:hover {
    border-color: #cccccc;
}

.field input:focus {
    border-color: #111111;
}

.auth-form .btn {
    margin-top: 6px;
}

.field-hint {
    font-size: 11px;
    line-height: 1.6;
    color: #999999;
    text-align: left;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.field-optional {
    color: #cccccc;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.auth-alt {
    margin-top: 24px;
    font-size: 13px;
    color: #888888;
    text-align: center;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.auth-alt a {
    color: #111111;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.auth-alt a:hover {
    border-color: #111111;
}

.account-alert {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #e8c4a8;
    background: #fff8f2;
    text-align: left;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.account-alert--banned {
    border-color: #e8b4b4;
    background: #fff5f5;
}
.account-alert-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 6px;
}
.account-alert-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #555555;
}
:root[data-theme="dark"] .account-alert {
    background: rgba(255, 180, 100, 0.08);
    border-color: rgba(255, 180, 100, 0.25);
}
:root[data-theme="dark"] .account-alert--banned {
    background: rgba(220, 80, 80, 0.1);
    border-color: rgba(220, 80, 80, 0.3);
}
:root[data-theme="dark"] .account-alert-title { color: var(--c-text, #f2f2f2); }
:root[data-theme="dark"] .account-alert-text { color: var(--c-text-mut, #aaa); }

.form-errors {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #f3d6d6;
    background: #fff7f7;
    border-radius: 8px;
    text-align: left;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.form-errors p {
    font-size: 13px;
    color: #b94646;
    line-height: 1.5;
    margin: 0;
}

.form-errors p + p {
    margin-top: 4px;
}

.muted-link {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.muted-link:hover {
    color: #111111;
}

:root[data-theme="dark"] .field-label {
    color: var(--c-text-mut, #8d92a0);
}

:root[data-theme="dark"] .field input {
    background: rgba(10, 16, 28, 0.88);
    border-color: var(--c-border, rgba(70, 130, 220, 0.14));
    color: var(--c-text, #ededed);
}

:root[data-theme="dark"] .field input:hover {
    border-color: var(--c-border-strong, rgba(100, 165, 255, 0.24));
}

:root[data-theme="dark"] .field input:focus {
    border-color: var(--c-accent, #2ea7ff);
}

:root[data-theme="dark"] .field-hint {
    color: var(--c-text-soft, #6b6f7a);
}

:root[data-theme="dark"] .auth-alt {
    color: var(--c-text-mut, #8d92a0);
}

:root[data-theme="dark"] .auth-alt a {
    color: var(--c-text, #ededed);
    border-bottom-color: var(--c-border, rgba(70, 130, 220, 0.14));
}

/* ===== Mobile adaptive ===== */
@media (max-width: 768px) {
    .auth-form { gap: 10px; }
    .field { gap: 5px; }
    .field-hint {
        font-size: 10px;
        line-height: 1.45;
    }
    .auth-alt { margin-top: 18px; }
    .footer-note { margin-top: 24px; }
}

@media (max-width: 600px) {
    .auth-form { gap: 12px; }
    .auth-form .btn { width: 100%; }
    .field input { height: 46px; font-size: 16px; }
    .account-alert { margin-bottom: 14px; padding: 12px 14px; }
    .form-errors p { font-size: 12.5px; }
    .legal-links { flex-direction: column; gap: 8px; }
}
