/* ==========================================
   1. GLOBAL RESET & FONTS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    background-image: radial-gradient(circle at 10% 20%, rgba(235, 245, 240, 0.4) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(235, 245, 240, 0.4) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333333;
}

/* ==========================================
   2. HALAMAN LOGIN (LAYOUT 2 KOLOM)
   ========================================== */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    margin: 20px;
}

/* Sisi Kiri - Hijau */
.left-side {
    flex: 1.1;
    background-color: #04574d; /* Warna hijau khas ZakaAI */
    background-image: linear-gradient(135deg, #04574d 0%, #03463e 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
}

.left-side h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
}

.left-side p {
    color: #a3cbc6;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sisi Kanan - Form Login & Halaman Register */
.right-side, .register-container {
    flex: 0.9;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Khusus Container Register agar ukurannya pas di tengah */
.register-container {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    padding: 40px;
    margin: 20px auto;
    display: block;
}

/* ==========================================
   3. KOMPONEN UI & TYPOGRAPHY
   ========================================== */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
}

.logo-area.center {
    justify-content: center;
    margin-bottom: 5px;
    color: #04574d;
}

.tagline {
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.88rem;
    color: #666666;
    margin-bottom: 30px;
}

/* ==========================================
   4. STYLE STRUKTUR FORM & INPUT
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

/* Penataan Baris Sandi & Konfirmasi di Halaman Register */
.password-row {
    display: flex;
    gap: 15px;
}

.password-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 8px;
}

/* Wrapper Input untuk menaruh Ikon di dalam Box */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #999999;
    font-size: 0.95rem;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.92rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #04574d;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 87, 77, 0.1);
}

/* Fitur Tambahan Form (Lupa Sandi / Ingat Saya) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555555;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    accent-color: #04574d;
    width: 16px;
    height: 16px;
}

.forgot-link, .switch-auth-link {
    color: #04574d;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover, .switch-auth-link:hover {
    text-decoration: underline;
}

/* ==========================================
   5. UTILITY BUTTONS (MASUK & REGISTRASI)
   ========================================== */
.btn-primary {
    width: 100%;
    background-color: #04574d;
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    margin-bottom: 25px;
}

.btn-primary:hover {
    background-color: #03463e;
}

/* Pembatas "Atau masuk dengan" */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888888;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

/* Tombol Google & Apple OAuth */
.oauth-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-oauth {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-oauth:hover {
    background: #f8fafc;
}

/* Footer teks perpindahan akun */
.auth-footer {
    text-align: center;
    font-size: 0.88rem;
    color: #555555;
}

/* ==========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
    }
    .left-side {
        display: none; /* Menyembunyikan sisi hijau di layar HP agar rapi */
    }
    .right-side {
        padding: 40px 30px;
    }
    .password-row {
        flex-direction: column;
        gap: 0;
    }
}