


.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(20, 25, 45, 0.95);
    border: 2px solid var(--accent-glow);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin: 0 0 8px 0;
    text-shadow: 0 0 20px var(--accent-glow-strong);
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.auth-logo a {
    text-decoration: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -12px;
    margin-bottom: 16px;
}

.text-button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    
    padding: 12px 0 12px 12px;
    margin: -12px 0;
}

.text-button:hover {
    text-decoration: underline;
}

.auth-status {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-status.info {
    display: block;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.password-hint {
    margin: 8px 0 0;
    color: rgba(226, 232, 240, 0.58);
    font-size: 12px;
    line-height: 1.4;
}


.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.password-toggle:hover {
    color: #fff;
}

.password-toggle[disabled] {
    cursor: not-allowed;
    opacity: 0.42;
}



.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger);
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.register-message {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(96, 165, 250, 0.38);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    color: #e5e7eb;
    font-size: 14px;
    display: none;
}

.register-message.is-visible { display: block; }
.register-message-title { margin: 0 0 8px; color: #dbeafe; font-weight: 800; }
.register-message-copy { margin: 0; color: rgba(226, 232, 240, 0.82); line-height: 1.55; }
.register-message-status { margin: 12px 0 0; color: #fcd34d; font-size: 13px; line-height: 1.5; }
.register-success-link { display: block; margin-top: 14px; text-align: center; }
.register-resend-btn { display: block; margin: 10px auto 0; }

.auth-preflight {
    margin: -4px 0 20px;
    padding: 10px 12px;
    border-left: 3px solid rgba(167, 139, 250, 0.75);
    color: rgba(226, 232, 240, 0.7);
    background: rgba(139, 92, 246, 0.07);
    border-radius: 0 9px 9px 0;
    font-size: 13px;
    line-height: 1.5;
}


.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(20, 25, 45, 0.6);
    border: 2px solid var(--accent-glow);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(20, 25, 45, 0.8);
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-group select option {
    background: #1a1f35;
}

.consent-label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
}



@media (max-height: 760px) and (min-width: 641px) {
    .auth-page-register {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .auth-page-register .auth-card {
        padding: 32px 40px;
    }

    .auth-page-register .auth-logo {
        margin-bottom: 20px;
    }

    .auth-page-register .form-group {
        margin-bottom: 16px;
    }

    .auth-page-register .auth-preflight {
        margin-bottom: 16px;
    }

    .auth-page-register .auth-footer {
        margin-top: 16px;
    }
}



.auth-page-reset .auth-container {
    max-width: 520px;
}

.auth-page-reset .auth-logo {
    margin-bottom: 24px;
}

.auth-page-reset .auth-logo h1 {
    font-size: 28px;
}

.auth-page-reset .auth-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.auth-page-reset .form-group {
    margin-bottom: 20px;
}

.auth-back-row {
    text-align: center;
    margin: -16px 0 24px;
}

.auth-back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.reset-status {
    display: none;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.reset-status.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    color: #fecdd3;
}

.reset-status.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
}

.muted-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}



#resetForm input:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    color: rgba(203, 213, 225, 0.45);
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.42);
    box-shadow: none;
}

#resetForm .auth-submit:disabled {
    cursor: not-allowed;
    opacity: 1;
    color: rgba(203, 213, 225, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(71, 85, 105, 0.32);
    box-shadow: none;
    transform: none;
}









.field-hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(226, 232, 240, 0.6);
    min-height: 0;
}

.field-hint:empty {
    display: none;
}

.field-hint.invalid {
    color: #fca5a5;
}
