/* ============================================
   AUTH PAGES STYLES (Login & Register)
   Modern, Clean Design with Light Mode Color Palette
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    background: var(--bg-primary);
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 4px 6px rgba(15, 23, 42, 0.05),
        0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-color);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .auth-card {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.auth-form .form-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    height: auto;
}

.auth-form .form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem var(--focus-ring);
    outline: none;
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-form .input-group .btn-outline-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.auth-form .input-group .btn-outline-secondary:hover {
    background-color: var(--bg-section);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.auth-form .input-group .btn-outline-secondary:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.auth-form .input-group .btn-outline-secondary i {
    font-size: 0.875rem;
}

.auth-form .form-check {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.auth-form .form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
}

.auth-form .form-check-input {
    border-color: var(--border-color);
    cursor: pointer;
}

.auth-form .form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.auth-form .form-check-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.3);
}

.auth-form .btn-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.auth-form .btn-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* ============================================
   VALIDATION & ERRORS
   ============================================ */

.validation-summary-errors {
    background-color: rgba(45, 212, 191, 0.1);
    border: 1.5px solid var(--accent-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-tertiary);
    font-size: 0.875rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.validation-summary-errors li {
    margin-bottom: 0.25rem;
}

.validation-summary-errors li:before {
    content: "• ";
    color: var(--accent-tertiary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.field-validation-error {
    color: var(--accent-tertiary);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
}

/* ============================================
   DIVIDER / SEPARATOR
   ============================================ */

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--divider-color);
}

.auth-divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
}

/* ============================================
   SOCIAL LOGIN (Future Use)
   ============================================ */

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-social-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-social-btn:hover {
    background: var(--bg-section);
    border-color: var(--divider-color);
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.4s ease-out;
}

.auth-form .form-group {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.05s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.1s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.15s; }
.auth-form .form-group:nth-child(4) { animation-delay: 0.2s; }
.auth-form .form-group:nth-child(5) { animation-delay: 0.25s; }
