body {
    background: linear-gradient(135deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 44, 85, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    display: flex;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.logo {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    color: var(--e-global-color-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-form p {
    color: var(--e-global-color-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-form .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    width: 100%;
    letter-spacing: 0.5px;
}

.login-form .btn:hover {
    background: var(--e-global-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 139, 208, 0.3);
}

.login-copyright {
    text-align: center;
    margin-top: 2rem;
    color: var(--e-global-color-text);
    opacity: 0.5;
    pointer-events: none;
}

.login-copyright p {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        min-height: 100svh;
        align-items: stretch;
    }
    
    .login-container {
        flex-direction: column;
        max-width: none;
        width: 100%;
        height: 100svh;
        margin: 0;
        border-radius: 0;
        min-height: 100svh;
        display: flex;
    }
    
    .login-left {
        flex: 0 0 auto;
        min-height: 30vh; 
        padding: 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center; 
    }
    
    .login-right {
        flex: 1;
        padding: 0.5rem 1.5rem 0.5rem; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
    }
    
    .login-form {
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        padding-bottom: 3.5rem;
        padding-top: 1rem; 
    }
    
    .login-form form {
        text-align: left;
        max-width: 400px; 
        margin: 0 auto;
        width: 100%;
    }
    
    .login-form .btn {
        width: 100%;
        margin: 1.8rem auto 0;
        padding: 16px 32px; 
        font-size: 1.1rem;
    }
    
    .login-form h2 {
        font-size: 2rem; 
        margin-bottom: 0.5rem;
        text-align: center;
        margin-top: 20px;
    }
    
    .login-form p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .login-copyright {
        position: absolute;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
        left: 1.5rem;
        right: 1.5rem;
        text-align: center;
        margin-top: 0;
    }
    
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .logo-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 1rem 1rem;
        min-height: 25vh; 
    }
    
    .login-right {
        padding: 0.5rem 1rem 0.5rem;
    }
    
    .login-form {
        padding-bottom: 2.8rem;
        padding-top: 0.5rem;
    }
    
    .login-form form {
        max-width: 360px;
        margin: 0 auto;
    }
    
    .login-form h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 20px;
    }
    
    .login-form p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    
    .login-form .btn {
        padding: 16px 32px;
        font-size: 1.05rem;
        margin: 1.8rem auto 0;
    }
    
    .login-copyright {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.8rem);
        left: 1rem;
        right: 1rem;
    }
    
    .logo img {
        height: 70px;
    }
    
    .logo-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }
}

@media (max-width: 360px) {
    .login-left {
        padding: 0.8rem;
        min-height: 22vh;
    }
    
    .login-right {
        padding: 0.3rem 0.8rem 0.3rem;
    }
    
    .login-form {
        padding-bottom: 2.2rem;
        padding-top: 0.3rem;
    }
    
    .login-form form {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .login-form h2 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 0.3rem;
        margin-top: 20px;
    }
    
    .login-form p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .login-form .btn {
        margin: 1.5rem auto 0;
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .login-copyright {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
        left: 0.8rem;
        right: 0.8rem;
    }
    
    .login-copyright p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .logo img {
        height: 60px; 
    }
    
    .logo-subtitle {
        font-size: 1rem; 
        font-weight: 600;
        margin-bottom: 0.6rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .alert {
        padding: 0.8rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.password-toggle:focus {
    outline: none !important;
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: inherit;
    transition: color 0.2s ease;
}
