:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--gray-50);
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* Split layout container */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

/* Left Side: Creative Showcase */
.auth-showcase {
    flex: 1;
    position: relative;
    background: #090d16;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5rem;
    overflow: hidden;
}

/* Tourism and Air Ticket Fading Showcase Backgrounds */
.showcase-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.showcase-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: imageFade 24s infinite ease-in-out;
}

.showcase-bg-slide:nth-child(1) {
    /* Tourism: Cappadocia balloon festival sunrise */
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 27, 75, 0.7) 50%, rgba(49, 16, 66, 0.8) 100%), 
                     url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073&auto=format&fit=crop');
    animation-delay: 0s;
}

.showcase-bg-slide:nth-child(2) {
    /* Air Ticket/Aviation: Airplane wing flight above clouds */
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 27, 75, 0.7) 50%, rgba(49, 16, 66, 0.8) 100%), 
                     url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=2074&auto=format&fit=crop');
    animation-delay: 8s;
}

.showcase-bg-slide:nth-child(3) {
    /* Tourism: Tropical lagoon beach drone view */
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 27, 75, 0.7) 50%, rgba(49, 16, 66, 0.8) 100%), 
                     url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?q=80&w=2069&auto=format&fit=crop');
    animation-delay: 16s;
}

@keyframes imageFade {
    0% { opacity: 0; transform: scale(1); }
    6% { opacity: 1; }
    33% { opacity: 1; }
    39% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; }
}

/* Booking Stream Overlay */
.live-activity-container {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 330px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
}

.activity-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: floatUp 20s infinite ease-in-out;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: border 0.3s;
}

.activity-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-icon.plane { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.activity-icon.hotel { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.activity-icon.wallet { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.activity-icon.check { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    display: block;
    margin-bottom: 2px;
}

.activity-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.activity-time {
    font-size: 0.7rem;
    color: #94a3b8;
    align-self: flex-start;
    margin-top: 2px;
    white-space: nowrap;
}

.activity-card.delay-1 { animation-delay: 0s; }
.activity-card.delay-2 { animation-delay: 5s; }
.activity-card.delay-3 { animation-delay: 10s; }
.activity-card.delay-4 { animation-delay: 15s; }

@keyframes floatUp {
    0% {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    4% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    21% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
}

/* Showcase branding & content */
.showcase-content {
    position: relative;
    z-index: 5;
    max-width: 640px;
}

.showcase-brand {
    margin-bottom: 2.5rem;
}

.showcase-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.showcase-logo-invert {
    filter: brightness(0) invert(1);
}

.showcase-logo-fallback {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.showcase-logo-fallback i {
    color: var(--secondary);
}

.showcase-carousel {
    position: relative;
    height: 150px;
    margin-bottom: 1.5rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.showcase-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.showcase-desc {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
    background: var(--secondary);
    width: 36px;
}

/* SVG Plane Path Animation */
.flight-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Right Side: Auth Form Panel */
.auth-form-side {
    width: 500px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem;
    border-left: 1px solid var(--gray-200);
    position: relative;
    z-index: 10;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.auth-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Theme Toggler Button */
.theme-toggle-floating {
    position: absolute;
    top: -20px;
    right: 0;
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: var(--gray-500);
    transition: var(--transition-smooth);
}

.theme-toggle-floating:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: scale(1.08) rotate(15deg);
}

.theme-toggle-floating .layout-mode-dark-icon { display: block; font-size: 1.3rem; }
.theme-toggle-floating .layout-mode-light-icon { display: none; font-size: 1.3rem; }

.auth-card-modern {
    width: 100%;
}

/* Modern styled validation warning elements */
.validation-error, .text-danger {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ef4444 !important;
    margin-top: 6px;
    display: block;
}

/* Footer inside Auth Side */
.auth-footer-modern {
    margin-top: 3rem;
    color: var(--gray-500);
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-footer-modern a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-modern a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.designer-credit {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Custom inputs, buttons and elements */
.custom-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.custom-input-group i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.custom-input-group .form-control {
    background: var(--gray-100);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 16px 20px 16px 52px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: 100%;
    height: auto;
    box-shadow: none;
}

.custom-input-group .form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.custom-input-group .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px -10px rgba(79, 70, 229, 0.15), 0 0 0 4px rgba(79, 70, 229, 0.08);
    color: var(--dark);
    outline: none;
}

.custom-input-group:focus-within i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.custom-input-group .form-control.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.custom-input-group .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.custom-input-group:focus-within .form-control.is-invalid + i {
    color: #ef4444;
}

/* Checkbox styling */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 6px;
    border: 1.5px solid var(--gray-300);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.2s;
}

.form-check-input:checked ~ .form-check-label {
    color: var(--dark);
}

/* Action Buttons */
.btn-glass {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
    transition: var(--transition-smooth);
}

.btn-glass:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

.btn-glass:active {
    transform: translateY(0);
}

.btn-glass i {
    transition: var(--transition-smooth);
    transform: translateX(-8px);
    opacity: 0;
    font-size: 1.2rem;
    display: inline-block;
}

.btn-glass:hover i {
    transform: translateX(0) translateY(-2px) rotate(-15deg);
    opacity: 1;
}

/* Forgot link */
.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Links on white side */
.auth-form-side a.fw-bold.text-white, 
.auth-form-side a.text-white {
    color: var(--primary) !important;
    transition: color 0.2s;
}

.auth-form-side a.fw-bold.text-white:hover, 
.auth-form-side a.text-white:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

.auth-form-side .text-muted {
    color: var(--gray-500) !important;
}

/* Custom text rules within views */
.text-dark {
    color: var(--dark) !important;
    transition: color 0.4s ease;
}

.text-muted-custom {
    color: var(--gray-500) !important;
    transition: color 0.4s ease;
}

/* DARK THEME STYLING SELECTORS */
body[data-layout-mode="dark"] {
    background-color: #0b0f19;
}

body[data-layout-mode="dark"] .auth-form-side {
    background: #0b0f19;
    border-left-color: rgba(255, 255, 255, 0.08);
}

body[data-layout-mode="dark"] .theme-toggle-floating {
    background: #111827;
    color: #cbd5e1;
}

body[data-layout-mode="dark"] .theme-toggle-floating:hover {
    background: #1e293b;
    color: var(--secondary);
}

body[data-layout-mode="dark"] .theme-toggle-floating .layout-mode-dark-icon { display: none; }
body[data-layout-mode="dark"] .theme-toggle-floating .layout-mode-light-icon { display: block; }

body[data-layout-mode="dark"] .text-dark {
    color: #f8fafc !important;
}

body[data-layout-mode="dark"] .text-muted-custom,
body[data-layout-mode="dark"] .auth-form-side .text-muted {
    color: #94a3b8 !important;
}

body[data-layout-mode="dark"] .custom-input-group .form-control {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body[data-layout-mode="dark"] .custom-input-group .form-control:focus {
    background: #0b0f19;
    border-color: var(--primary);
    box-shadow: 0 10px 25px -10px rgba(79, 70, 229, 0.35), 0 0 0 4px rgba(79, 70, 229, 0.15);
}

body[data-layout-mode="dark"] .form-check-input {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: transparent;
}

body[data-layout-mode="dark"] .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

body[data-layout-mode="dark"] .form-check-input:checked ~ .form-check-label {
    color: #f8fafc;
}

body[data-layout-mode="dark"] .forgot-link {
    color: #818cf8;
}

body[data-layout-mode="dark"] .forgot-link:hover {
    color: #a5b4fc;
}

body[data-layout-mode="dark"] .auth-form-side a.fw-bold.text-white, 
body[data-layout-mode="dark"] .auth-form-side a.text-white,
body[data-layout-mode="dark"] .auth-form-side a.fw-bold {
    color: #818cf8 !important;
}

body[data-layout-mode="dark"] .auth-form-side a.fw-bold.text-white:hover, 
body[data-layout-mode="dark"] .auth-form-side a.text-white:hover,
body[data-layout-mode="dark"] .auth-form-side a.fw-bold:hover {
    color: #a5b4fc !important;
}

body[data-layout-mode="dark"] .password-toggle-btn {
    color: rgba(255, 255, 255, 0.3);
}

body[data-layout-mode="dark"] .password-toggle-btn:hover {
    color: #818cf8;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .auth-showcase {
        display: none;
    }

    body {
        background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed;
        background-size: cover;
        position: relative;
    }

    body::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(79, 70, 229, 0.45) 100%);
        z-index: 1;
    }

    .auth-container {
        display: block;
        min-height: 100vh;
        z-index: 2;
    }

    .auth-form-side {
        width: 100%;
        min-height: 100vh;
        background: transparent !important;
        border-left: none;
        justify-content: center;
        align-items: center;
        padding: 2rem 1.5rem;
        z-index: 10;
    }

    .auth-form-wrapper {
        width: 100%;
        max-width: 450px;
        flex: none;
    }

    .theme-toggle-floating {
        top: -35px;
        right: 10px;
    }

    .auth-card-modern {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 3rem 2.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: background-color 0.4s ease, border-color 0.4s ease;
    }

    /* Glassmorphism adjustment on dark mode (mobile) */
    body[data-layout-mode="dark"] .auth-card-modern {
        background: rgba(15, 23, 42, 0.85);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    }

    .auth-footer-modern {
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        margin-top: 2rem;
    }

    .auth-footer-modern a {
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .auth-footer-modern a:hover {
        color: #e0e7ff;
    }

    .custom-input-group .form-control {
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
    }

    .custom-input-group .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    }

    body[data-layout-mode="dark"] .custom-input-group .form-control {
        background: #111827;
        border-color: rgba(255, 255, 255, 0.1);
    }

    body[data-layout-mode="dark"] .custom-input-group .form-control:focus {
        background: #0b0f19;
        border-color: var(--primary);
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 1rem 1rem;
    }

    .auth-card-modern {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

/* Shared layout helper classes for auth sub-pages */
.responsive-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
.text-subtitle {
    font-size: 0.92rem;
}
.text-footer-muted {
    font-size: 0.9rem;
}
.link-no-underline {
    text-decoration: none;
}
.text-label-custom {
    font-size: 0.85rem;
    user-select: none;
}
.text-label-agree {
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}
.link-terms {
    text-decoration: none;
    font-weight: 600;
}
.display-none {
    display: none !important;
}
.verified-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.verified-icon-custom {
    font-size: 5.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.custom-form-control-opt {
    border-radius: 12px !important;
    text-align: center;
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gray-100);
    border: 1.5px solid transparent !important;
    height: 52px;
    transition: var(--transition-smooth);
    padding: 0 !important;
    flex: 1;
    width: 0;
}

.custom-form-control-opt:focus {
    background: #ffffff;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.2), 0 0 0 4px rgba(79, 70, 229, 0.08) !important;
    outline: none;
}
