/* auth.css - Versi Fix Presisi Tengah */

/* --- RESET & BASE --- */
:root {
    --bs-font-sans-serif: "Nunito", sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: #f0f2f5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#auth {
    width: 100%;
    max-width: 420px;
    padding: 15px;
}

#auth-left {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* --- FORM & INPUT --- */

.form-group {
    position: relative !important; /* Wajib relative agar ikon tidak kabur */
    margin-bottom: 1.2rem;
}

.form-control {
    width: 100%;
    height: 50px !important;     /* Tinggi input dikunci 50px */
    padding-left: 50px;          /* Jarak teks dari kiri (untuk ikon user) */
    padding-right: 50px;         /* Jarak teks dari kanan (untuk mata) */
    font-size: 1rem;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #435ebe;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(67, 94, 190, 0.1);
    outline: none;
}

/* --- IKON (POSISI DIPAKSA TENGAH) --- */

.form-control-icon,
.password-toggle-icon {
    position: absolute !important;
    top: 50% !important;            /* Taruh di tengah vertikal container (50%) */
    transform: translateY(-50%) !important; /* Tarik mundur 50% tinggi ikon agar pas di tengah */
    width: 50px;                    /* Lebar area ikon */
    height: auto;                   
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0 !important;           /* Hapus margin bawaan jika ada */
    padding: 0 !important;          /* Hapus padding bawaan jika ada */
}

/* Posisi Horizontal */
.form-control-icon {
    left: 0 !important;
    color: #aab2bd;
    pointer-events: none;
}

.password-toggle-icon {
    right: 0 !important;
    cursor: pointer;
    color: #aab2bd;
    transition: color 0.3s;
}

/* Reset ukuran font ikon biar tidak aneh */
.form-control-icon i,
.password-toggle-icon i {
    font-size: 1.3rem !important;
    line-height: 1 !important;
}

.password-toggle-icon:hover {
    color: #435ebe;
}

/* --- TOMBOL --- */
.btn-primary {
    background-color: #435ebe;
    border-color: #435ebe;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-top: 1.5rem;
}
.btn-primary:hover {
    background-color: #324c9c;
}