/* 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 Register - Lebar Presisi 480px di Tengah */
.register-container {
    background: #ffffff;
    width: 100%;
    max-width: 480px; /* UNTUK MENGUNCI LEBAR SEPERTI PRODUK & LOGIN */
    margin: 0 auto;   /* MEMBUAT POSISI CONTAINER PAS DI TENGAH HORIZONTAL */
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Navbar Header Sticky */
.register-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.register-header .back-btn {
    font-size: 22px;
    color: #008a43;
    text-decoration: none;
    margin-right: 18px;
    line-height: 1;
}

.register-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* Content Wrapper */
.register-content {
    padding: 24px 20px;
    width: 100%;
    flex: 1;
}

/* Form Container Paksa Lebar 100% */
#registerForm {
    width: 100%;
}

/* Input Fields */
.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;
}

.btn-toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #888888;
    padding: 0;
    line-height: 1;
}

/* Tombol Utama Daftar */
.btn-daftar {
    width: 100%;
    background-color: #e0e0e0;
    color: #a0a0a0;
    border: none;
    padding: 13px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.btn-daftar.active {
    background-color: #008a43; /* Hijau HalalGo */
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 138, 67, 0.3);
}

.btn-daftar.active:active {
    background-color: #006e35;
}

/* Divider Atau */
.divider-or {
    text-align: center;
    margin: 28px 0 20px 0;
    position: relative;
}

.divider-or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eeeeee;
    z-index: 1;
}

.divider-or span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    color: #888888;
}

/* Google Register Button */
.btn-google {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 11px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.btn-google:active {
    background-color: #f5f5f5;
}

/* Footer Login */
.login-footer {
    width: 100%;
    margin-top: 36px;
    text-align: center;
}

.login-footer p {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.login-footer a {
    color: #008a43;
    text-decoration: none;
    font-weight: 700;
}

/* Alert Notification */
.alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.alert-danger {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* Style Tombol Lanjut ke Login */
.btn-ke-login {
    display: inline-block;
    background-color: #008a43;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-ke-login:hover, .btn-ke-login:active {
    background-color: #006e35;
}