* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F4F7F6 0%, #E8EDEB 100%);
    color: #334155;
    min-height: 100vh;
    padding-top: 0;
    margin: 0;
}

/* ==================== AUTH PAGE SPECIFIC ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 48px;
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.02));
}

.circle-1 {
    width: 250px;
    height: 250px;
    top: -125px;
    right: -125px;
}

.circle-2 {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: -90px;
}

.circle-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 15%;
}

.circle-4 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1B4D3E;
    margin-bottom: 8px;
}

.auth-header h1 .accent {
    color: #F5A623;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: #64748B;
    font-size: 0.9rem;
}

.auth-tab-container {
    display: flex;
    gap: 12px;
    background: #F4F7F6;
    padding: 6px;
    border-radius: 60px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab-btn i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    background: white;
    color: #F5A623;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn.active i {
    color: #F5A623;
}

.auth-tab-btn:hover:not(.active) {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
}

.auth-form-container {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.auth-form-container.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1B4D3E;
    margin-bottom: 8px;
}

.form-group label i {
    color: #F5A623;
    width: 18px;
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.form-group input.error {
    border-color: #E63946;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #F5A623;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748B;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F5A623;
}

.checkbox-label a {
    color: #F5A623;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #F5A623;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #E8871E;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #F7B84D, #F5A623);
    color: #1B4D3E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.98);
    padding: 0 16px;
    position: relative;
    color: #94A3B8;
    font-size: 0.8rem;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-direction: row;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 60px;
    background: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn.google {
    color: #DB4437;
    border-color: rgba(219, 68, 55, 0.25);
}

.social-btn.google:hover {
    background: #DB4437;
    border-color: #DB4437;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.3);
}

.social-btn.facebook {
    color: #4267B2;
    border-color: rgba(66, 103, 178, 0.25);
}

.social-btn.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.3);
}

.auth-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 16px;
}

.auth-footer-text a {
    color: #F5A623;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-footer-text a:hover {
    text-decoration: underline;
    color: #E8871E;
}

.error-text {
    color: #E63946;
    font-size: 0.75rem;
    margin-top: 6px;
    display: none;
}

.error-text.show {
    display: block;
}

.form-message {
    padding: 12px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.85rem;
    display: none;
}

.form-message.success {
    background: rgba(6, 214, 160, 0.2);
    color: #059669;
    border: 1px solid rgba(6, 214, 160, 0.4);
    display: block;
}

.form-message.error {
    background: rgba(230, 57, 70, 0.2);
    color: #DC2626;
    border: 1px solid rgba(230, 57, 70, 0.4);
    display: block;
}

/* ==================== FORGOT PASSWORD MODAL ==================== */
.forgot-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.forgot-password-modal.show {
    display: flex;
}

.forgot-modal-content {
    background: white;
    border-radius: 28px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

.forgot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(135deg, #F5A623, #E8871E);
}

.forgot-modal-header h3 {
    color: #1B4D3E;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.forgot-modal-header h3 i {
    color: #1B4D3E;
    margin-right: 8px;
}

.forgot-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #1B4D3E;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.forgot-modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: #DC2626;
}

.forgot-modal-body {
    padding: 24px;
}

.forgot-modal-body p {
    color: #64748B;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forgot-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #E2E8F0;
}

.forgot-modal-footer .btn-secondary,
.forgot-modal-footer .btn-primary {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.forgot-modal-footer .btn-secondary {
    background: #F4F7F6;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.forgot-modal-footer .btn-secondary:hover {
    background: #EDF2EC;
}

.forgot-modal-footer .btn-primary {
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
}

.forgot-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== STATS SECTION ==================== */
.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 28px 32px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    transition: all 0.3s;
    min-width: 140px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(245, 166, 35, 0.4);
}

.stat-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== REMOVE ICON FROM LABELS ==================== */
#loginFormContainer .form-group label i,
#registerFormContainer .form-group label i {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .auth-page {
        padding: 20px 16px;
    }
    
    .auth-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .auth-header h1 {
        font-size: 1.4rem;
    }
    
    .auth-tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .social-login {
        flex-direction: row;
        gap: 12px;
    }
    
    .social-login .social-btn {
        flex: 1;
        margin: 0;
        white-space: nowrap;
    }
    
    .stat-card {
        padding: 20px 24px;
        min-width: 110px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .social-login {
        gap: 8px;
    }
    
    .social-login .social-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

/* ==================== SHARED HEADER ADJUSTMENTS ==================== */
.auth-view-container {
    background: linear-gradient(135deg, #F4F7F6 0%, #E8EDEB 100%) !important;
}

/* Fix modal z-index to appear above shared header */
.forgot-password-modal {
    z-index: 20000;
}

.forgot-modal-content {
    z-index: 20001;
}

/* Ensure proper spacing for shared header */
.auth-page {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .auth-page {
        padding-top: 10px;
        min-height: calc(100vh - 60px);
    }
}

/* ==================== TOAST STYLES ==================== */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastFadeInUp 0.3s ease;
}

.custom-toast.error {
    background: #E63946;
}

.custom-toast.info {
    background: #3B82F6;
}

@keyframes toastFadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}