html, body {
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    height: 100%;
    background: url('../images/login-asset.png') no-repeat;
    background-size: cover;
    background-position: center left;
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4rem;
    padding: 2rem;
    min-height: 100vh;
}

.welcome-section {
    color: #FFFFFF;
    max-width: 800px;
    margin-right: 1rem;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
}

.logo {
    width: 150px;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 6vw;
    font-weight: 800;
    margin: 0;
    margin-left: 15%;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.13);
    line-height: 1.05;
    text-align: left;
}

.team-title {
    font-size: 3vw;
    margin: 0;
    margin-bottom: 0.5em;
    margin-left: 15%;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.13);
    text-align: left;
}

.welcome-message {
    font-size: 1.4vw;
    line-height: 1.25;
    margin: 0;
    margin-left: 15%;
    width: 90%;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.10);
    text-align: left;
    font-weight: 600;
    margin-bottom: 1em;
}

.welcome-quote {
    font-style: italic;
    margin: 0;
    margin-left: 15%;
    font-size: 1vw;
    text-align: left;
    line-height: 1.2;
}

.login-form-container {
    color: #d98238;
    padding: 3rem;  
    border-radius: 20px;
    width: 400px;
    margin: 0 auto;
    margin-right: 8%;
    margin-top: 6%;
}

.login-title {
    color: var(--primary-white);
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
    text-shadow: -1px 0px 6px rgba(0,0,0,0.52);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group label span {
    color: #FF4444;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: #fcf9ea;
    font-size: 1rem;
    box-sizing: border-box;
    font: inherit;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #ff9900 0%, #d98238 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.login-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.1s ease;
}

.login-divider {
    border: none;
    border-top: 3px solid #d98238;
    margin: 1.5rem 0 0.5rem 0;
    opacity: 0.3;
}

.forgot-password {
    display: block;
    text-align: left;
    color: var(--primary-white);
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.logo-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

.logo-container .logo {
    width: 120px;
    height: auto;
    margin: 0;
    display: block;
}

/* Mobile Welcome Container - Hidden on desktop */
.mobile-welcome-container {
    display: none;
}

.mobile-welcome-section {
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #ff9900 0%, #d98238 100%);
    margin: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    body::before {
        display: none;
    }

    body {
        background: #FFFFFF;
    }

    .logo-container {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 10;
    }

    .logo-container .logo {
        width: 80px;
    }

    /* Show mobile welcome container, hide desktop welcome */
    .mobile-welcome-container {
        display: block;
        padding-top: 6rem; /* Account for fixed logo */
    }

    .welcome-section {
        display: none;
    }

    .login-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        min-height: auto;
        justify-content: flex-start;
    }

    .mobile-welcome-section .welcome-title {
        font-size: 3rem;
        margin: 0 0 0.5rem 0;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    }

    .mobile-welcome-section .team-title {
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    }

    .mobile-welcome-section .welcome-message {
        font-size: 1rem;
        margin: 0 0 1rem 0;
        width: 100%;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
        font-weight: 600;
    }

    .mobile-welcome-section .welcome-quote {
        font-size: 0.9rem;
        margin: 0;
        font-style: italic;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    }
    
    .login-form-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }

    .login-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .form-group input {
        padding: 1rem;
        font-size: 1rem;
    }

    .login-button {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .mobile-welcome-section .welcome-title {
        font-size: 2.5rem;
    }

    .mobile-welcome-section .team-title {
        font-size: 1.2rem;
    }

    .mobile-welcome-section .welcome-message {
        font-size: 0.9rem;
    }

    .mobile-welcome-section .welcome-quote {
        font-size: 0.8rem;
    }

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

    .login-form-container {
        padding: 1.5rem 1rem;
    }

    .mobile-welcome-container {
        margin: 0.5rem;
    }

    .mobile-welcome-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    body::before {
        display: none;
    }

    body {
        background: #FFFFFF;
    }

    /* Show mobile welcome container, hide desktop welcome */
    .mobile-welcome-container {
        display: block;
        padding-top: 6rem; /* Account for fixed logo */
    }

    .welcome-section {
        display: none;
    }

    .login-container {
        gap: 3rem;
        padding: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
    }

    .mobile-welcome-section .welcome-title {
        font-size: 4rem;
    }

    .mobile-welcome-section .team-title {
        font-size: 2rem;
    }

    .mobile-welcome-section .welcome-message {
        font-size: 1.2rem;
    }

    .mobile-welcome-section .welcome-quote {
        font-size: 1rem;
    }
    
    .login-form-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}