/* K-Chat v2 — Auth Page Styles */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
}

.auth-container {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 80px rgba(212,160,23,0.05);
    animation: fadeIn 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.logo-icon svg {
    width: 56px;
    height: 56px;
}
.auth-logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-bright), var(--green-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition);
}
.auth-tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #0d0f08;
}

/* Forms */
.auth-form { animation: fadeIn 0.3s ease; }

.captcha-group {
    position: relative;
}
.captcha-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}
#captcha-question {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}
.captcha-refresh {
    position: absolute;
    right: 8px;
    top: 32px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s;
}
.captcha-refresh:hover { transform: rotate(180deg); }

.auth-links {
    text-align: center;
    margin-top: 16px;
}
.auth-links a {
    color: var(--gold-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}
.auth-links a:hover { color: var(--gold); }

/* Message */
.auth-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.auth-message.error {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}
.auth-message.success {
    background: rgba(39,174,96,0.15);
    color: #27ae60;
    border: 1px solid rgba(39,174,96,0.3);
}

/* Particles */
.auth-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.particle {
    position: absolute;
    bottom: -10px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { opacity: 0.25; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        margin: 16px;
        padding: 28px 20px;
    }
}
