* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../../assets/images/bg.png') no-repeat center center fixed;
    background-size: cover;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.9); /* Transparan sedikit agar background terlihat */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.input-box {
    position: relative;
    margin-bottom: 30px;
}

.input-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid #adadad;
    outline: none;
    background: transparent;
}

.input-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #adadad;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #2196F3;
    font-size: 12px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.btn {
    width: 100%;
    background: #2196F3;
    border: none;
    padding: 10px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #1e88e5;
}

.register-link {
    text-align: center;
    margin-top: 10px;
}

.register-link a {
    color: #2196F3;
    text-decoration: none;
    transition: 0.3s;
}

.register-link a:hover {
    text-decoration: underline;
}


/* Tetap sama dengan kode sebelumnya, tambahkan CSS baru di bawah */

.input-box {
    position: relative;
    margin-bottom: 30px;
}

.input-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid #adadad;
    outline: none;
    background: transparent;
    position: relative;
}

.input-box .toggle-password {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #adadad;
    transition: 0.3s;
}

.input-box .toggle-password:hover {
    color: #2196F3;
}

/* Pastikan ikon tidak mengganggu label dan input */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #2196F3;
    font-size: 12px;
}
