/*
 * Authentication page panel styles.
 * Page chrome (header/footer/background) comes from site.css.
 */

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-box {
    background: var(--surface, #111a30);
    border: 1px solid var(--line, #26324d);
    border-radius: 16px;
    padding: 40px 36px;
}

.auth-logo {
    display: block;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    margin: 0 auto 14px;
}

.auth-box h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: center;
    color: var(--text, #eef2fb);
}

.auth-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 28px;
    text-align: center;
    color: var(--muted, #9aa6c0);
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg, #0a1122);
    border: 1px solid var(--line, #26324d);
    border-radius: 10px;
    color: var(--text, #eef2fb);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--primary, #2f9be0);
}

.auth-box input::placeholder {
    color: var(--muted, #9aa6c0);
}

.auth-box button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary, #2f9be0);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
}

.auth-box button[type="submit"]:hover {
    background: var(--primary-dark, #2384c4);
}

.auth-box button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-box p {
    text-align: center;
    margin-top: 20px;
    color: var(--muted, #9aa6c0);
    font-size: 14px;
}

.auth-box p a {
    color: var(--primary, #2f9be0);
    text-decoration: none;
    font-weight: 600;
}

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

#message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 11px;
    font-size: 14px;
    text-align: center;
}

#message.error {
    background: rgba(239, 90, 90, 0.12);
    border: 1px solid rgba(239, 90, 90, 0.4);
    color: #f4a5a5;
}

#message.success {
    background: rgba(52, 199, 120, 0.12);
    border: 1px solid rgba(52, 199, 120, 0.4);
    color: #8fe0b0;
}

#message.info {
    background: var(--primary-soft, #12314c);
    border: 1px solid rgba(47, 155, 224, 0.45);
    color: #bfe0f5;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-checkbox label {
    color: var(--muted, #9aa6c0);
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-bar.weak { width: 33%; background: #ef4444; }
.password-strength-bar.medium { width: 66%; background: #f59e0b; }
.password-strength-bar.strong { width: 100%; background: #10b981; }

@media (max-width: 480px) {
    .auth-box { padding: 28px 22px; }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--muted, #9aa6c0); }
.text-primary { color: var(--primary, #2f9be0); }
.text-success { color: #10b981; }
.text-error { color: #ef4444; }
.hidden { display: none !important; }
