/* ============ AUTH SECTION ============ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(99,102,241,.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(168,85,247,.35);
}

.admin-icon {
    background: rgba(99,102,241,.15);
    border-color: rgba(168,85,247,.50);
    box-shadow: 0 0 20px rgba(168,85,247,.25);
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99,102,241,.18);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168,85,247,.15);
    background: rgba(255,255,255,.08);
}

.form-group input::placeholder {
    color: rgba(176, 176, 176, 0.5);
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--gold-primary);
}

/* Captcha Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99,102,241,.08);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(168,85,247,.25);
}

.captcha-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold-primary);
    user-select: none;
    font-family: 'Courier New', monospace;
    text-decoration: line-through;
    text-decoration-color: rgba(212, 175, 55, 0.2);
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.captcha-refresh:hover {
    background: rgba(168,85,247,.15);
    transform: rotate(90deg);
}

.captcha-container input {
    padding-left: 1rem !important;
}

/* Form Actions */
.form-actions {
    margin-top: 0.5rem;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-full:hover {
    gap: 1rem;
}

/* Auth Links */
.auth-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.auth-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

.auth-link:hover {
    color: #EC4899;
}

/* Message Boxes */
.message-box {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.message-error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .captcha-text {
        font-size: 1.3rem;
    }
}