body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f9fb;
}
.login-container {
    display: flex;
    min-height: 100vh;
}
.login-left {
    background: #1D1C1C;
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 50px 60px 80px;
    min-width: 350px;
    max-width: 400px;      /* Tambahkan ini untuk membatasi lebar form */
    width: 100%;
    box-sizing: border-box;
}
.login-logo {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.login-logo img {
    max-width: 180px;
    max-height: 120px;
    width: 100%;
    height: auto;
    display: block;
}
.login-left h2 {
    margin: 0 0 10px 0;
    font-size: 2.1em;
    font-weight: 600;
}
.login-desc {
    margin-bottom: 30px;
    color: #d0d3e0;
}
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.login-form label {
    margin-bottom: 6px;
    font-size: 1em;
    font-weight: 500;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    margin-bottom: 18px;
    font-size: 1em;
    background: #f7f9fb;
    color: #1D1C1C;
    outline: none;
}
.login-form button {
    padding: 12px 0;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #1D1C1C;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.login-form button:hover {
    background: #ffc107;
    color: #1D1C1C;
}
.login-error {
    background: #ffdddd;
    color: #b30000;
    padding: 10px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.98em;
}
.login-right {
    flex: 1.2;
    background: #e8eaf6;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-width: 350px;
    padding: 0;
    position: relative; /* Tambahkan ini untuk overlay */
}
.login-img {
    width: 100%;
    height: 100vh;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
    position: relative;
    z-index: 1;
}
/* Overlay di atas gambar */
.login-right::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(29,28,28,0.8);
    z-index: 2;
    pointer-events: none;
}
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
    margin-bottom: 0; /* Hapus margin bawah agar sejajar dengan icon */
}
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    user-select: none;
    height: 22px;
    display: flex;
    align-items: center;
}
.login-form label {
    margin-bottom: 6px;
    font-size: 1em;
    font-weight: 500;
}
.login-form .password-wrapper {
    margin-bottom: 18px; /* Tambahkan jarak antar field */
}
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    .login-right, .login-left {
        min-width: 100vw;
        width: 100vw;
        padding: 40px 20px;
        max-width: 100vw;  /* Tambahkan ini agar form tetap responsif di mobile */
    }
    .login-img {
        width: 100%;
        max-width: 100vw;
    }
}