/* ==========================================================
   🌟 MY ACCOUNT / LOGIN PAGE STYLING 🌟
   ========================================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.auth-card {
    width: 100%;
    max-width: 500px; /* Centered narrow card for premium app feel */
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
}
.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
    transition: all 0.3s ease;
}
.auth-tab-btn.active {
    color: #111111;
}
.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 3px 3px 0 0;
}

/* Titles */
.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 5px 0;
}
.auth-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 25px;
}

/* Form Fields */
.auth-row {
    display: flex;
    gap: 15px;
}
.auth-group.half { width: 50%; }

.auth-group {
    margin-bottom: 20px;
    position: relative;
}
.auth-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
}
.text-red { color: #ef4444; }

.input-icon-wrap {
    position: relative;
}
.input-icon-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.input-icon-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 45px; /* Space for left/right icons */
    background: #fbfbfc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #111111;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.input-icon-wrap input:focus {
    background: #ffffff;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 4px rgba(255,179,0,0.1);
}

/* Show/Hide Password Button */
.btn-toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}
.btn-toggle-pass:hover { color: #111111; }

/* Options (Remember me & Forgot) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}
.remember-me input { accent-color: var(--primary-yellow); cursor: pointer; }
.forgot-pass {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-yellow);
    text-decoration: none;
}
.forgot-pass:hover { text-decoration: underline; color: #111111; }

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    background: #111111;
    color: var(--primary-yellow);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}
.btn-auth-submit:hover {
    background: var(--primary-yellow);
    color: #111111;
    box-shadow: 0 8px 25px rgba(255,179,0,0.4);
    transform: translateY(-2px);
}

/* Social Login Divider */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}
.auth-divider span {
    background: #ffffff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

/* Google Button */
.btn-google-auth {
    width: 100%;
    background: #ffffff;
    color: #111111;
    border: 1px solid #cbd5e1;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}
.btn-google-auth img {
    width: 20px;
    height: 20px;
}
.btn-google-auth:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .auth-card { padding: 30px 20px; }
    .auth-row { flex-direction: column; gap: 0; }
    .auth-group.half { width: 100%; }
}

/* ==========================================================
   🛠️ FINAL FIXES: EYE ICON, USER DROPDOWN & MOBILE NAV
   ========================================================== */

/* 1. Eye Icon Overflow Fix */
.input-icon-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}
.input-icon-wrap input {
    padding-right: 45px !important; /* Make sure text doesn't overlap eye */
}
.btn-toggle-pass {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* 2. User Logged-in Dropdown */
.user-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.user-btn {
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.user-btn:hover { color: var(--primary-yellow); }
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    margin: 10px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}
/* Trigger Dropdown on Hover */
.user-dropdown-wrap:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.user-dropdown-menu li a:hover {
    background: #f8fafc;
    color: var(--primary-yellow);
    padding-left: 25px; /* Slight indent effect */
}

/* 3. Mobile Header Icons Flex Fix */
.mobile-icons-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}
.mob-login-icon {
    font-size: 20px;
    color: var(--primary-black);
}
.mob-login-icon:hover {
    color: var(--primary-yellow);
}

/* ==========================================================
   🔒 FIX: LOCK EYE ICON INSIDE THE PASSWORD BOX
   ========================================================== */
.input-icon-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}
.input-icon-wrap input {
    width: 100% !important;
    box-sizing: border-box !important; /* یہ ان پٹ کو باہر نکلنے سے روکے گا */
    padding-right: 45px !important; /* آنکھ کے لیے جگہ چھوڑے گا */
}
.btn-toggle-pass {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* ==========================================================
   🛠️ FOOL-PROOF EYE ICON FIX (Inside Input Box)
   ========================================================== */

/* فیلڈ کی پوزیشننگ */
.input-icon-wrap {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* ان پٹ فیلڈ میں دائیں جانب جگہ چھوڑیں تاکہ آئی کون اوپر نہ چڑھے */
.input-icon-wrap input {
    width: 100% !important;
    padding-right: 50px !important; /* آئی کون کے لیے دائیں طرف جگہ */
    box-sizing: border-box !important;
    height: 50px !important; /* ہائیٹ کنٹرولڈ رہے گی */
}

/* آئی کون بٹن کی پوزیشن */
.btn-toggle-pass {
    position: absolute !important;
    right: 15px !important; /* یہ باکس کے کنارے سے اندر کی طرف رہے گا */
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    z-index: 20 !important; /* ٹیکسٹ کے اوپر رہے گا */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* جب ان پٹ پر کلک ہو تو آئی کون کا کلر */
.btn-toggle-pass:hover {
    color: #111111 !important;
}