@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    /* BACKGROUND HALAMAN LOGIN - Ganti warna di sini */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* card utama */
.login-container {
    width: 900px;
    max-width: 100%;
    min-height: 550px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease;
}

/* kiri */
.login-left {
    width: 50%;
    padding: 60px;
    /* BACKGROUND KIRI (Tulisan Selamat Datang) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    z-index: 1;
}

.login-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    z-index: 1;
}

/* kanan */
.login-right {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8f9fc;
}

.login-right h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

/* form */
/* INPUT TEXT - Ganti gaya kolom isian di sini */
form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

form input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* role */
.role {
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.role input[type="radio"] {
    accent-color: #667eea;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.role label {
    margin: 0;
    /* reset margin for role labels inside flex */
    cursor: pointer;
    font-weight: 400;
}

/* password toggle */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    margin-bottom: 0 !important;
    padding-right: 45px !important;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 20;
    transition: color 0.3s;
    background: transparent;
    padding: 5px;
    /* Increase click area */
}

.toggle-password:hover {
    color: #667eea;
}

/* tombol */
button {
    width: 100%;
    padding: 14px;
    /* WARNA TOMBOL LOGIN */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

/* daftar */
/* LINK DAFTAR - Gaya teks link 'Daftar sekarang' */
.daftar {
    margin-top: 25px;
    font-size: 14px;
    text-align: center;
    color: #666;
}

.daftar a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.daftar a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Media Queries */
/* TAMPILAN RESPONSIF - Pengaturan untuk layar HP/Tablet */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-left {
        width: 100%;
        padding: 40px;
        text-align: center;
        border-radius: 20px 20px 0 0;
    }

    .login-right {
        width: 100%;
        padding: 40px;
        border-radius: 0 0 20px 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}