/* --- RESET & DASAR --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc; /* Warna abu-abu sangat terang yang bersih */
    color: #0f172a;
    line-height: 1.5;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- KOTAK UTAMA (DIOPTIMALKAN UNTUK HP) --- */
.auth-container {
    width: 100%;
    max-width: 420px; /* Ukuran pas untuk layar smartphone */
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

/* --- HEADER HALAMAN --- */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .logo {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb; /* Warna Biru Utama */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: #64748b;
}

/* --- NOTIFIKASI ERROR / SUKSES --- */
.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

/* --- FORMULIR INPUT --- */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Efek saat pengguna HP mengetik/menekan kotak input */
.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- BUNGKUSAN PASSWORD & TOMBOL MATA --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 44px; /* Memberi ruang agar teks tidak tertutup ikon mata */
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    user-select: none;
}

/* --- STRUKTUR CHECKBOX (KETENTUAN HUKUM IKLAN) --- */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.form-checkbox a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* --- TOMBOL DAFTAR / MASUK --- */
.btn-auth {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: background-color 0.2s;
}

/* Efek tombol saat ditekan di layar HP */
.btn-auth:active {
    background-color: #1e40af;
}

/* --- FOOTER DI BAWAH KOTAK --- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}


