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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
}

.container {
    display: flex;
    min-height: 100vh;
}

.login-section {
    flex: 0 0 35%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.05);
}

.image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.logo {
    margin-bottom: 40px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-title {
    font-size: 1.8rem;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Floating label input */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    font-size: 1rem;
    padding: 12px 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #777;
    background: white;
    padding: 0 4px;
    transition: 0.2s ease all;
    pointer-events: none;
}

.form-input:focus {
    border-color: #4f46e5;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    left: 8px;
    font-size: 0.8rem;
    color: #4f46e5;
    transform: none;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.forgot-link {
    display: block;
    text-align: center;
    color: #4f46e5;
    text-decoration: none;
    margin-top: 20px;
    font-size: 0.9rem;
}

.forgot-link:hover {
    color: #7c3aed;
}

.footer-text {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-section {
        flex: 1;
        min-height: 100vh;
    }
    .image-section {
        display: none;
    }
    body {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .login-section {
        justify-content: flex-start; /* align content to top */
        padding-top: 50px; /* small space from top */
    }

}

/* For bigger screens (FHD and up) */
@media (min-width: 1440px) {
    .login-container {
        max-width: 380px;   /* slightly bigger on large screens */
    }
}

@media (min-width: 1920px) {
    .login-container {
        max-width: 380px;   /* FHD screens */
    }
}

@media (min-width: 2560px) {
    .login-container {
        max-width: 500px;   /* 2K screens */
    }
}

@media (min-width: 3840px) {
    .login-container {
        max-width: 600px;   /* 4K screens */
    }
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important; /* match background */
    -webkit-text-fill-color: #000 !important; /* text color */
    transition: background-color 5000s ease-in-out 0s; /* prevent flicker */
    border: 2px solid #ccc; /* keep your border style */
    border-radius: 8px;
}

.image-section {
    flex: 1;
    /* Solid brand background like your screenshot */
    background: #7c3aed;
    /* layout */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero {
    max-width: 520px;
    margin: 0 auto;
}

.hero-icon {
    width: 96px;      /* tweak if you want larger/smaller */
    height: 96px;
    margin: 0 auto 24px;
    display: block;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* You already hide image-section on <=1024px. Keep or adjust as needed. */
@media (max-width: 1024px) {
    .login-section { flex: 1; min-height: 100vh; }
    .image-section { display: none; }
}

.hidden {
    display: none;
}

/* For bigger screens (FHD and up) */
@media (min-width: 1440px) {
    .login-container {
        max-width: 380px;   /* slightly bigger on large screens */
    }
}
 
@media (min-width: 1920px) {
    .login-container {
        max-width: 380px;   /* FHD screens */
    }
}
 
@media (min-width: 2560px) {
    .login-container {
        max-width: 500px;   /* 2K screens */
    }
}
 
@media (min-width: 3840px) {
    .login-container {
        max-width: 600px;   /* 4K screens */
    }
}
 
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important; /* match background */
    -webkit-text-fill-color: #000 !important; /* text color */
    transition: background-color 5000s ease-in-out 0s; /* prevent flicker */
    border: 2px solid #ccc; /* keep your border style */
    border-radius: 8px;
}
 
/* Force label to move up when Chrome autofills */
input:-webkit-autofill + .form-label {
    top: -8px;
    left: 8px;
    font-size: 0.8rem;
    color: #4f46e5;
    transform: none;
}