@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
    --primary-orange: #ff8c42;
    --light-orange: #ffb984;
    --cream: #fef8f4;
    --light-grey: #e8e8e8;
    --medium-grey: #6b6b6b;
    --dark-grey: #2c2c2c;
    --black: #1a1a1a;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    min-height: 100vh;
    overflow: hidden;
}

/* ===== MAIN WRAPPER ===== */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT SECTION ===== */
.left-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--black) 50%, #252525 100%);
    overflow: hidden;
}

/* World Map Background */
.world-map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
}

.world-map-svg {
    width: 100%;
    height: 100%;
}

.continents {
    fill: var(--light-grey);
}

.continent {
    animation: continentPulse 8s ease-in-out infinite;
}

.continent:nth-child(1) { animation-delay: 0s; }
.continent:nth-child(2) { animation-delay: 1.3s; }
.continent:nth-child(3) { animation-delay: 2.6s; }
.continent:nth-child(4) { animation-delay: 3.9s; }
.continent:nth-child(5) { animation-delay: 5.2s; }
.continent:nth-child(6) { animation-delay: 6.5s; }

@keyframes continentPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.routes {
    stroke: var(--primary-orange);
    stroke-width: 2;
    fill: none;
}

.route {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawRoute 8s ease-in-out infinite;
    opacity: 0.5;
}

.route-1 { animation-delay: 0s; }
.route-2 { animation-delay: 2s; }
.route-3 { animation-delay: 4s; }
.route-4 { animation-delay: 6s; }

@keyframes drawRoute {
    0%, 100% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    30% {
        opacity: 0.6;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: -1000;
        opacity: 0;
    }
}

.hubs {
    fill: var(--primary-orange);
    filter: drop-shadow(0 0 8px var(--primary-orange));
}

.shipment {
    fill: var(--light-orange);
    filter: drop-shadow(0 0 6px var(--light-orange));
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 140, 66, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 66, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Left Content */
.left-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: white;
}

.brand-header {
    max-width: 650px;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 8;
    animation: fadeInUp 0.8s ease;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
}

#typewriter {
    display: inline-block;
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    animation: blink 0.7s infinite;
    color: var(--primary-orange);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.description {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--light-grey);
}

.highlight-text {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Supply Chain Illustration */
.illustration-container {
    margin: 3rem 0 0;
    width: 100%;
    animation: fadeIn 1s ease 0.3s both;
}

.animated-supply-chain {
    width: 100%;
    height: auto;
    color: var(--primary-orange);
}

.conveyor-belt {
    opacity: 0.6;
}

.belt-dot {
    filter: drop-shadow(0 0 4px var(--primary-orange));
}

.moving-box {
    opacity: 0.4;
}

.moving-truck {
    opacity: 0.5;
}

.flying-plane {
    opacity: 0.5;
}

.signal-waves circle {
    stroke: var(--primary-orange);
}

.network-lines line {
    stroke: var(--light-orange);
}



/* ===== RIGHT SECTION - LOGIN FORM ===== */
.right-section {
    width: 600px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.company-logo {
    /* max-width: 120px; */
    height: 3.5rem;
    object-fit: contain;
}

.logo {
    font-size: 2rem;
    font-weight: 300;
    color: var(--medium-grey);
}

.logo-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark-grey);
}

/* Error Alert */
.error-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3f0;
    border: 1px solid var(--light-orange);
    border-radius: 12px;
    color: #d84315;
    margin-bottom: 1.5rem;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.input-group label svg {
    color: var(--medium-grey);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-grey);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: var(--dark-grey);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.input-group input::placeholder {
    color: var(--medium-grey);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--medium-grey);
    padding: 0.5rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-orange);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

.label-text {
    font-size: 0.875rem;
    color: var(--medium-grey);
}

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

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

/* Login Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.35);
}

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

.btn-arrow {
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.form-footer p {
    font-size: 0.8rem;
    color: var(--medium-grey);
}

.form-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .left-content {
        padding: 3rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.75rem;
    }

    .right-section {
        width: 500px;
    }
}

@media (max-width: 968px) {
    body {
        overflow-y: auto;
    }

    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .left-section {
        min-height: 60vh;
    }

    .left-content {
        padding: 2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .illustration-container {
        margin: 2rem 0;
    }

    .right-section {
        width: 100%;
        padding: 3rem 2rem;
    }

    .form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .left-content {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .illustration-container {
        display: none;
    }

    .right-section {
        padding: 2rem 1.5rem;
    }

    .form-container {
        padding: 0;
    }

    .logo {
        font-size: 2.5rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }
}