/* Reset Box Sizing Agar Ukuran Padding Tidak Merusak Lebar */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f4f6f8; /* Latar luar soft abu-abu */
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container Utama Login - Posisi Rata Atas & Lebar Presisi 480px */
.login-container {
    background: #ffffff;
    width: 100%;
    max-width: 480px; /* Samakan presisi dengan produk.php */
    margin: 0 auto;   /* Posisikan di tengah layar desktop */
    min-height: 100vh;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Posisikan elemen dari paling atas */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Logo HalalGo Section */
.logo-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.brand-logo {
    max-width: 160px;
    height: auto;
}

/* Fallback Logo Badge CSS jika logo.png belum ada */
.brand-badge-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo-text-halal {
    font-size: 32px;
    font-weight: 800;
    color: #008a43; /* Hijau HalalGo */
    letter-spacing: -0.5px;
}

.logo-text-go {
    color: #ff9800; /* Aksyen Oranye */
}

.logo-sub {
    font-size: 11px;
    font-weight: 700;
    color: #666666;
    letter-spacing: 2px;
    margin-top: -4px;
}

/* Form Container Paksa Lebar 100% */
#loginForm {
    width: 100%;
}

/* Form Field Style */
.input-group-field {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    margin-bottom: 20px;
    position: relative;
    transition: border-color 0.2s;
}

.input-group-field:focus-within {
    border-bottom-color: #008a43;
}

.field-icon {
    font-size: 18px;
    color: #888888;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.input-group-field input {
    width: 100%;
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333333;
    background: transparent;
    padding: 0;
}

/* Menghilangkan background biru/kuning bawaan Autofill Browser */
.input-group-field input:-webkit-autofill,
.input-group-field input:-webkit-autofill:hover, 
.input-group-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group-field input::placeholder {
    color: #bbbbbb;
}

/* Password Right Actions (Toggle Eye & Lupa?) */
.password-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    color: #888888;
    line-height: 1;
}

.divider-line {
    color: #e0e0e0;
    font-size: 12px;
}

.link-lupa {
    color: #2196f3;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

/* Tombol Masuk */
.btn-masuk {
    width: 100%;
    background-color: #e0e0e0;
    color: #a0a0a0;
    border: none;
    padding: 13px 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

/* Tombol Aktif Khas HalalGo */
.btn-masuk.active {
    background-color: #008a43;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 138, 67, 0.3);
}

.btn-masuk.active:active {
    background-color: #006e35;
}

/* Footer Link Register */
.register-footer {
    width: 100%;
    margin-top: 36px;
    text-align: center;
}

.register-footer p {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.register-footer a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
}

/* Alert Error */
.alert-danger {
    width: 100%;
    background-color: #fce8e6;
    color: #c5221f;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 20px;
    border: 1px solid #fad2cf;
}