@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #fff;
    width: 900px;
    height: 550px; /* Tinggi disesuaikan agar tidak terlalu padat */
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 20px;
    overflow: hidden;
}

/* === BAGIAN KIRI (LOGO) === */
.left-box {
    width: 45%; /* Sedikit diperkecil agar kanan lebih lega */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #f0f0f0;
    padding: 40px;
    background-color: #fafafa;
}

.logo-img {
    width: 70%;
    margin-bottom: 25px;
}

.app-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.app-subtitle {
    font-size: 15px;
    color: #555;
    font-weight: 400;
}

/* === BAGIAN KANAN (FORM) === */
.right-box {
    width: 55%;
    padding: 40px 50px; /* Padding diperbesar agar lega */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    color: #000;
}

/* === PERBAIKAN UTAMA: INPUT FORM YANG RAPI === */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Wrapper adalah KOTAK UTAMA. Hanya ini yang punya border. */
.input-wrapper {
    display: flex;
    align-items: center; /* KUNCI: Membuat ikon dan teks pas di tengah vertikal */
    width: 100%;
    height: 50px; /* Tinggi tetap agar konsisten */
    background-color: #fff;
    border: 1px solid #e0e0e0; /* Satu garis tipis abu-abu */
    border-radius: 8px;
    padding: 0 15px; /* Jarak di kiri dan kanan dalam kotak */
    transition: all 0.3s ease;
}

/* Efek saat kotak diklik */
.input-wrapper:focus-within {
    border-color: #00BFB3; /* Berubah jadi Tosca */
}

/* Ikon di sebelah kiri */
.input-icon {
    color: #003B73; /* Warna Navy */
    font-size: 18px;
    width: 24px; /* Lebar tetap agar rapi */
    text-align: center;
    flex-shrink: 0; /* Agar ikon tidak tergencet */
}

/* Input area untuk mengetik */
.form-input {
    flex-grow: 1; /* Mengisi sisa ruang kosong */
    border: none; /* PENTING: Menghapus border bawaan input */
    background: transparent; /* Latar transparan */
    outline: none; /* Menghapus garis biru browser saat diklik */
    padding: 0 15px; /* Jarak antara ikon kiri dan teks */
    font-size: 14px;
    color: #333;
    height: 100%;
    font-weight: 500;
}

/* Placeholder (teks samar) */
.form-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Ikon Mata di kanan */
.toggle-password {
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    padding-left: 10px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.toggle-password:hover {
    color: #00BFB3;
}

/* === TOMBOL & LINK === */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #00BFB3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #009e94;
}

.link-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.link-text a {
    color: #003B73; /* Navy */
    text-decoration: none;
    font-weight: 700;
}

.link-text a.danger-link {
    color: #ff4d4d;
    display: inline-block;
}

/* === NOTIFIKASI / ALERT === */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.alert-success {
    background-color: #e8f8f7;
    color: #008f86;
    border: 1px solid #bfeee9;
}

.alert-danger {
    background-color: #fbe8e9;
    color: #c9302c;
    border: 1px solid #f3c1c3;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    opacity: 0.6;
}
.close-btn:hover { opacity: 1; }

.text-helper {
    font-size: 11px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}