:root {
    --primary-color: #FF9600;
    --primary-hover: #E68700;
    --navy-blue: #0A3750;
    --text-color: #1a202c;
    --text-muted: #718096;
    --bg-color: #ffffff;
    --input-bg: #f7fafc;
    --input-border: #e2e8f0;
    --font-family: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll from van image */
}

/* Layout */
.login-container {
    display: flex;
    height: 100%;
    width: 78%;
}

/* Left Side - Image */
.login-image {
    flex: 0 0 50%;
    position: relative;
    overflow: visible;
    /* Allow van to spill out */
    z-index: 10;
    /* Higher than form container */
    background-color: #121212; /* Neutral dark color matching the background image */
}


.bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Immediate visibility */
    z-index: 1;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

.van-wrapper {
    position: absolute;
    bottom: 0%;
    left: -115%;
    width: 237%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    /* Removed animation for instant appearance */
}

.van-image {
    width: 100%;
    height: auto;
    max-height: 127vh;
    object-fit: contain;
    display: block;
}

@keyframes vanSlideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}




.overlay {
    display: none;
}


/* Right Side - Form */
.login-form-container {
    flex: 0 0 87%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start; /* Changed from center to prevent clipping at the top */
    justify-content: center;
    padding: 2rem 1rem;
    background-color: white;
    height: 100vh;
    overflow-y: auto;
}

.login-content {
    width: 100%;
    max-width: 500px;
}

/* Typography */
h1.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: -1rem;
}

.logo {
    max-width: 150px;
    height: auto;
}

.mobile-logo {
    display: none;
    /* Hidden by default */
}

/* Toggle Buttons */
.auth-toggle {
    display: flex;
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 1rem;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.toggle-btn.active {
    background-color: white;
    color: var(--navy-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-btn:hover:not(.active) {
    color: var(--text-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    background-color: white;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

input::placeholder {
    color: #a0aec0;
}

/* Form Actions (Remember me & Forgot Password) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.forgot-password:hover {
    color: var(--primary-hover);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.1s;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 6px rgba(255, 140, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Responsive Design */
/* Responsive Design */

/* Large Screens (1440px and up) */
@media (min-width: 1440px) {
    .van-wrapper {
        left: -105%;
        /* Slightly less aggressive overlap */
        width: 220%;
    }
}

/* Laptops (1024px to 1366px) */
@media (max-width: 1366px) {
    .login-container {
        width: 85%;
        /* Widen container */
    }

    .van-wrapper {
        left: -130%;
        /* Pull back slightly */
        width: 251%;
    }

    .login-form-container {
        flex: 0 0 80%;
        /* Give more space to form */
    }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
    .login-container {
        width: 95%;
        height: auto;
        min-height: 100vh;
        align-items: center;
    }

    .login-image {
        flex: 0 0 40%;
        /* Reduce image side */
    }

    .van-wrapper {
        left: -180%;
        /* Move van further left */
        width: 350%;
        bottom: 5%;
    }

    .login-form-container {
        flex: 0 0 60%;
        padding: 1.5rem;
    }
}

/* Mobile (Under 768px) */
@media (max-width: 767px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 100vh;
        background-color: #f8fafc;
        /* Light background for spacing context */
    }

    .login-image {
        flex: none;
        width: 100%;
        height: 85px;
        overflow: hidden;
        position: relative;
    }

    .bg-texture {
        opacity: 0.6;
    }

    .van-wrapper {
        display: none;
        /* Hide van on mobile */
    }

    .login-form-container {
        flex: 1;
        width: 90%;
        /* Create spacing on sides */
        max-width: 400px;
        /* Prevent it from getting too wide on larger mobiles */
        margin: -20px auto 2rem auto;
        /* Overlap slightly and center */
        padding: 2.5rem 2rem;
        border-radius: 16px;
        /* Rounded corners */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        align-items: center;
    }

    .login-content {
        max-width: 100%;
    }

    /* Restore logo in form for mobile */
    .logo-container {
        display: block;
        margin-bottom: 0.5rem;
    }

    .logo {
        max-width: 140px;
        /* Adjust size for mobile */
    }

    .logo {
        max-width: 120px;
        /* Slightly smaller logo */
    }
}

/* Registration Flow Styles */
.reg-step {
    animation: fadeIn 0.3s ease-out;
}

.step-title {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-desc {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.promo-banner {
    background: #e6fffa;
    color: #2c7a7b;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #b2f5ea;
}

.account-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-type-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.account-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 140, 0, 0.1);
}

.account-type-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
    color: #4a5568;
    transition: color 0.3s;
}

.account-type-card:hover .icon {
    color: var(--primary-color);
}

.account-type-card h3 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.account-type-card p {
    font-size: 0.8rem;
    color: #718096;
}

.btn-back-link {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}

.btn-back-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.verification-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
}

.code-box:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}