/* ============================
   WeVisit - Main Stylesheet
   Figma-Accurate Implementation
   ============================ */

/* Reset & Variables */
:root {
    --primary: #270442;
    --secondary: #F87B1B;
    --title: #324B51;
    --white: #FFFFFF;
    --gray5: #E0E0E0;
    --text-muted: #979797;
    --border-radius: 25px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--white);
    color: #2c2c2c;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.py-5 { padding: 80px 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 54px;
    font-weight: 400;
    font-size: 16px;
    font-family: 'Almarai', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0px 18px 32px rgba(50, 75, 81, 0.63);
}
.btn-primary:hover {
    background: #1a022d;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0px 18px 32px rgba(32, 85, 67, 0.27);
}
.btn-secondary:hover {
    background: #df680d;
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--title);
}
.btn-white:hover { opacity: 0.9; }

.btn-outline-white {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-nav {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 54px;
    font-weight: 400;
}
.btn-outline-nav:hover {
    background: rgba(39, 4, 66, 0.08);
}

.btn-primary-nav {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 54px;
    font-weight: 400;
}
.btn-primary-nav:hover {
    background: #1a022d;
}

.map-btn {
    border: 1px solid #7B68EE;
    color: var(--primary);
    border-radius: 50px;
    padding: 12px 35px;
    background: transparent;
    display: inline-block;
}

.map-btn:hover {
    background: #7B68EE;
    color: var(--white);
}

.btn-newsletter {
    background: var(--title);
    color: white;
    border-radius: 65px;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-newsletter:hover {
    background: var(--primary);
    color: white;
}

.btn-footer-submit {
    background: white;
    border: 1px solid transparent;
    border-radius: 25px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-footer-submit i {
    color: #ccc;
    transition: var(--transition);
}

.btn-footer-submit:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-footer-submit:hover i {
    color: white;
}

/* ============================
   Header
   ============================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-menu a {
    font-weight: 400;
    color: var(--title);
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-menu a.active {
    color: var(--primary);
    background: rgba(39, 4, 66, 0.06);
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(39, 4, 66, 0.04);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================
   Page Header (Internal Pages)
   ============================ */
.page-header {
    background: #F4F6F9;
    padding: 180px 0 80px;
    text-align: center;
    color: var(--primary);
}

.page-header h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.page-header p {
    font-size: 20px;
    color: var(--title);
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/hero-banner.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #c5b8bf;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.hero-text-box {
    max-width: 560px;
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary);
    line-height: 118%;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 24px;
    color: var(--title);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 169%;
    text-transform: uppercase;
}

.search-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.08) 100%);
    border-radius: 30px;
    padding: 12px 24px;
    margin-bottom: 25px;
    width: 505px;
    max-width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
}

.search-input-group i {
    color: var(--title);
}

.search-input-group input {
    border: none;
    background: transparent;
    flex-grow: 1;
    font-size: 20px;
    font-family: 'Almarai', sans-serif;
    outline: none;
    color: var(--text-muted);
    text-align: right;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ============================
   Sections Global
   ============================ */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
}

.section-header.center {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.section-title {
    font-family: 'Almarai', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--title);
    text-transform: uppercase;
    line-height: 169%;
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    font-family: 'Almarai', sans-serif;
    font-size: 24px;
    color: var(--title);
    font-weight: 400;
    margin-top: 0;
    text-transform: uppercase;
    line-height: 169%;
}

.view-all {
    color: var(--title);
    font-weight: 400;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    border: 1px solid var(--title);
    padding: 14px 32px;
    border-radius: 54px;
    transition: var(--transition);
    flex-shrink: 0;
}
.view-all:hover {
    background: var(--title);
    color: var(--white);
}

/* ============================
   Slider & Destination Cards
   ============================ */
.slider-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.slider-btn {
    background: var(--secondary);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 10;
}
.slider-btn:hover {
    background: #df680d;
    transform: scale(1.05);
}

.prev-btn {
    margin-left: -28px;
    position: relative;
    z-index: 10;
}
.next-btn {
    margin-right: -28px;
    position: relative;
    z-index: 10;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    overflow: hidden;
    width: 100%;
}

.destination-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 439px;
    flex: 1;
    min-width: 300px;
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.59), rgba(0,0,0,0.59));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 22px;
}

.card-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 249px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(50,75,81,0.68) 100%);
    backdrop-filter: blur(4.25px);
    border-radius: var(--border-radius);
    pointer-events: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(255,255,255,0.21);
    color: var(--gray5);
    padding: 6px 18px;
    border-radius: 17.5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 169%;
}

.fav-btn {
    background: rgba(255,255,255,0.13);
    border: none;
    color: white;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.fav-btn:hover {
    background: var(--secondary);
}

.card-bottom {
    color: white;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 169%;
}

.card-desc {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 169%;
    opacity: 0.9;
}

.card-location {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray5);
    line-height: 169%;
}

.rating {
    color: #FFFFFF;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    gap: 4px;
}

.rating i {
    font-size: 13px;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: white;
    border: 1px solid var(--white);
    border-radius: 29px;
    padding: 14px;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}
.card-link:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================
   Institutions Banner
   ============================ */
.institutions-banner {
    padding: 0;
    margin: 0;
}

.banner-content {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 341px;
}

.banner-bg-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    z-index: 0;
}

.banner-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px), radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.5;
}

.banner-text {
    position: relative;
    z-index: 2;
    max-width: 55%;
}

.banner-text h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.banner-text p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
}

.banner-actions {
    display: flex;
    gap: 16px;
}

.banner-actions .btn {
    padding: 12px 32px;
}

.banner-graphics {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.graphic-towers {
    position: absolute;
    left: 8%;
    bottom: -5%;
    width: auto;
    height: 130%;
    max-height: 480px;
    object-fit: contain;
    z-index: 2;
}

.graphic-element.circle {
    position: absolute;
    left: 5%;
    bottom: 0;
    width: 320px;
    height: 250px;
    background: var(--secondary);
    border-radius: 300px 300px 0 0;
}

/* ============================
   Destinations Grid
   ============================ */
.all-destinations .section-header.center {
    align-items: flex-end;
}

.all-destinations .section-title {
    font-size: 32px;
}

.all-destinations .section-subtitle {
    font-size: 24px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ============================
   Map Section
   ============================ */
.map-section {
    background: var(--white);
}

.map-content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.map-visuals {
    flex: 1;
    position: relative;
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #F4F6F9;
}

.saudi-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-pin {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-pin::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 25px 16px 0;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
    z-index: -1;
}

.map-pin.pin-secondary {
    border-color: var(--secondary);
}

.map-pin.pin-secondary::after {
    border-color: var(--secondary) transparent transparent transparent;
}

.map-pin:hover {
    transform: scale(1.1);
    z-index: 10;
}

.map-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pin-1 { top: 5%; left: 10%; }
.pin-2 { top: 45%; left: 15%; width: 100px; height: 100px; }
.pin-3 { top: 15%; left: 55%; width: 100px; height: 100px; }
.pin-4 { top: 60%; left: 50%; width: 100px; height: 100px; }

.pin-2::after, .pin-3::after, .pin-4::after {
    bottom: -22px;
    border-width: 25px 16px 0;
}

.map-text {
    flex: 1;
}

.map-text h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 112%;
    text-transform: uppercase;
}

.map-text p {
    font-size: 24px;
    color: var(--primary);
    line-height: 169%;
    font-weight: 400;
}

/* ============================
   Newsletter Section
   ============================ */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-box {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 341px;
}

.newsletter-decor {
    display: none;
}

.newsletter-content {
    text-align: center;
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.newsletter-content h3 {
    font-size: 35px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 39px;
    text-transform: capitalize;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.85;
    font-size: 16px;
    line-height: 30px;
}

.newsletter-form {
    display: flex;
    background: white;
    padding: 4px;
    border-radius: 65px;
    border: 1px solid #E7E7EC;
    box-shadow: 0px 8px 15px rgba(140, 152, 164, 0.1);
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    border-radius: 65px;
    outline: none;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    text-align: right;
    color: #77838F;
}

.newsletter-form button {
    padding: 12px 30px;
    border-radius: 65px;
    font-weight: 700;
    font-size: 16px;
    background: var(--title);
    color: var(--white);
    border: 1px solid #E7E7EC;
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--primary);
    color: white;
    padding-top: 0;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 2fr;
    gap: 40px;
    padding: 80px 0 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.brand-col p {
    opacity: 0.7;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
}

.app-links {
    display: flex;
    gap: 12px;
}

.app-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.49) 100%);
    border: none;
    padding: 10px 18px;
    border-radius: 17px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.app-btn:hover {
    background: rgba(255,255,255,0.2);
}

.links-col h4, .subscribe-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 24px;
    letter-spacing: 0.3px;
    color: #92989F;
}

.links-col ul li {
    margin-bottom: 0;
}

.links-col ul a {
    color: var(--white);
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.3px;
}
.links-col ul a:hover {
    color: var(--secondary);
}

.subscribe-col p {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}
.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 0.5px solid #616161;
    font-size: 11px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

/* ============================
   Responsive & Mobile Enhancements
   ============================ */

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    .destinations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 30px; }
    .banner-text h2 { font-size: 48px; }
}

@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }
    .banner-text {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .banner-actions { justify-content: center; }
    .banner-graphics { display: none; }
    
    .map-content-wrapper { flex-direction: column; text-align: center; }
    .map-text { margin-bottom: 40px; padding-top: 0 !important; text-align: center !important; }
    .map-text > div { text-align: center !important; }
    .map-text .btn { display: inline-block !important; }
    .map-composite-img {
        margin-right: -30px !important;
        margin-left: -30px !important;
        width: calc(100% + 60px) !important;
        margin-top: 30px !important;
    }
    
    .hero-image { object-position: 70% center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s ease;
        z-index: 100;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 20px;
        width: 100%;
    }
    
    .header-actions { display: none; }

    .hero {
        text-align: center;
        padding-top: 120px;
        min-height: 80vh;
    }
    
    .hero-content { justify-content: center; }
    .hero-text-box { max-width: 100%; }
    
    .search-box {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn { width: 100%; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .view-all { align-self: flex-start; }
    
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 18px; }
    
    .slider-btn { display: none; }
    .cards-wrapper { 
        padding-bottom: 20px;
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }
    
    .destination-card { min-width: 280px; }
    
    .hero-image { object-position: 50% center; }
    .hero-bg::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.4);
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 22px; }
    .banner-text h2 { font-size: 32px; }
    .newsletter-box { padding: 40px 20px; }
    
    .map-composite-img {
        margin-right: -20px !important;
        margin-left: -20px !important;
        width: calc(100% + 40px) !important;
    }
}

/* ============================
   Auth Pages
   ============================ */
.auth-page {
    height: 100vh;
    overflow: hidden;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.auth-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(39, 4, 66, 0.8), rgba(39, 4, 66, 0.4));
    z-index: 1;
}

.auth-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
}

.auth-logo-white {
    height: 70px;
    margin-bottom: 30px;
}

.auth-image-content h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.auth-image-content p {
    font-size: 20px;
    color: var(--secondary);
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 40px;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
}

.auth-title {
    font-family: 'Cairo', sans-serif;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.auth-form .input-group {
    margin-bottom: 20px;
    text-align: right;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--title);
    font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--gray5);
    border-radius: var(--border-radius);
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background: #FAFAFA;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 4, 66, 0.1);
    background: var(--white);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--title);
    cursor: pointer;
    font-weight: 400 !important;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--secondary);
    font-weight: 700;
}
.forgot-password:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
}

.auth-social {
    margin-top: 40px;
    text-align: center;
    position: relative;
}

.auth-social::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gray5);
    z-index: 1;
}

.auth-social p {
    position: relative;
    z-index: 2;
    background: var(--white);
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 14px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray5);
    background: var(--white);
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    color: var(--title);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-social:hover {
    background: #FAFAFA;
    border-color: var(--title);
}

.btn-social.google i { color: #DB4437; }
.btn-social.apple i { color: #000; font-size: 18px; }

.auth-switch {
    margin-top: 30px;
    text-align: center;
    font-size: 15px;
    color: var(--title);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}
.auth-switch a:hover {
    color: var(--secondary);
}

.d-none { display: none; }

@media (max-width: 992px) {
    .auth-image-side { display: none; }
    .auth-page { height: auto; overflow: visible; }
    .auth-wrapper { height: auto; min-height: 100vh; }
    .auth-form-side { padding: 40px 20px; }
    .auth-mobile-logo.d-none { display: block !important; margin-bottom: 40px; text-align: center; }
}

