@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #F0F5FF;
    overflow: hidden;
}

.main-container {
    width: 100%;
    max-width: 800px; /* Responsif: Max lebar 800px */
    min-height: 500px;
    background: white;
    
    /* Shadow halus */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
    
    /* CUSTOM RADIUS SESUAI PERMINTAAN (96px) */
    border-top-right-radius: 96px;
    border-bottom-left-radius: 96px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.step-container {
    width: 100%;
}

.step-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-form h1 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.step-form p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Style Input Biasa */
.input-group {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    max-width: 280px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 12px;
}

.input-group i.password-toggle {
    left: auto;
    right: 12px;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 32px;
    border: 1px solid #DADADA;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.input-group input::placeholder {
    color: #A9A9A9;
}

/* Style Tombol Submit */
.submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 10px;
    background: #1A3E7F;
    color: white;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2a529a;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

/* Style Link Resend (Di Bawah OTP) */
.resend-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;    /* Jarak atas ke OTP */
    margin-bottom: 20px; /* Jarak bawah ke Tombol */
    text-align: center;
}

.resend-text a {
    color: #1A3E7F;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer; /* Default pointer, nanti diubah JS jika disabled */
    transition: color 0.3s ease;
}

/* Style Input OTP 4 Kotak */
.otp-input-group {
    position: relative;
    margin-bottom: 10px; /* Sedikit margin ke resend text */
    width: 100%;
    max-width: 280px;
}

.otp-input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 12px;
    z-index: 1;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    margin-left: 32px;
}

.otp-inputs input {
    width: 50px;
    height: 50px;
    border: 1px solid #DADADA;
    border-radius: 6px;
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background-color: #fff;
    transition: border-color 0.3s;
}

.otp-inputs input:focus {
    outline: none;
    border-color: #1A3E7F;
    box-shadow: 0 0 0 2px rgba(26, 62, 127, 0.1);
}

.otp-inputs input:not(:last-child) {
    margin-right: 8px;
}

/* Style Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #f44336;
}

.toast.success {
    background-color: #4CAF50;
}

/* ================= THIN SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 6px; /* Lebar scrollbar tipis */
}

::-webkit-scrollbar-track {
    background: #f0f5ff; /* Warna track sesuai tema */
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0; /* Warna thumb abu-abu */
    border-radius: 3px; /* Sudut bulat */
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0; /* Warna hover lebih gelap */
}

/* ... (kode CSS lainnya tetap sama) ... */

/* Style Toast Notification (UPDATED) */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;   /* PINDAH KE KIRI */
    z-index: 1000;
}

.toast {
    background-color: #4CAF50;
    color: white;
    padding: 16px 24px; /* DIPERBESAR */
    border-radius: 12px; /* Lebih rounded */
    margin-bottom: 12px;
    font-size: 16px;    /* FONT DIPERBESAR */
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 450px;   /* LEBAR DIPERBESAR */
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #D32F2F; /* Merah */
}

.toast.success {
    background-color: #28a745; /* Biru MoneyTime */
}