:root {
    --primary:          #0264A3;
    --primary-hover:    #4686d4;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Inter", sans-serif;
    background-color: #e8ebf0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.main-row {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 0;
}
/* ── LEFT COLUMN (LAYOUT AWAL) ── */
.left-col {
    flex: 1;
    padding: 0 46px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 2.8rem;
}
.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.2px;
}
.tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #111827;
    line-height: 1.18;
    letter-spacing: -1.2px;
    margin-bottom: 2rem;
}
.social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}
.avatars { display: flex; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #e8ebf0;
    margin-left: -9px;
}
.avatar:first-child { margin-left: 0; }
.av1 { background: #f4803f; }
.av2 { background: #2bbcb0; }
.av3 { background: #cc4b37; }
.proof-text {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* ── RIGHT COLUMN (STRUKTUR GAMBAR + WARNA LAMA) ── */
.right-col {
    flex: 0 0 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2.4rem 2.5rem;
    width: 100%;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}
.card-header-area {
    text-align: center;
    margin-bottom: 2rem;
}
.card-title-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.4rem;
}
.card-title-main span {
    color: #0264A3; /* Menggunakan Biru Utama */
}
.card-sub-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b5563;
}

/* Form Elements */
.field-group {
    margin-bottom: 1.2rem;
    position: relative;
}
.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}
.form-control {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 0.68rem 0.9rem;
    font-size: 0.88rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}
.form-control::placeholder {
    color: #b0b7c3;
}
.form-control:focus {
    border-color: #0264A3;
    box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.1);
    outline: none;
}
.pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-wrap .form-control {
    padding-right: 3rem;
}
.pw-toggle {
    position: absolute;
    right: 0.3rem;
    height: 85%;
    width: 2.8rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0 8px 8px 0;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.18s, background-color 0.18s;
}
.pw-toggle:hover {
    background: #e5e7eb;
    color: #0264A3;
}

/* Link Forgot */
.forgot-pw-wrapper {
    text-align: right;
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
}
.forgot-pw-link {
    font-size: 0.82rem;
    color: #0264A3;
    font-weight: 600;
    text-decoration: none;
}
.forgot-pw-link:hover {
    text-decoration: underline;
}

/* Buttons (Warna Sesuai Kode Pertama) */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-custom {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 0.78rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
}
.btn-custom:active {
    transform: translateY(0);
}
.btn-login-submit {
    background: var(--primary);
    color: #ffffff;
}
.btn-login-submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 18px rgba(27, 79, 138, 0.28);
    transform: translateY(-1px);
}
/* Divider */
.divider-container {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 1.8rem 0;
}
.divider-container::before,
.divider-container::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #d1d5db; /* Garis Putus-putus */
}
.divider-container:not(:empty)::before { margin-right: 1rem; }
.divider-container:not(:empty)::after { margin-left: 1rem; }

/* Register Section */
.register-hint-text {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
}
.register-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-reg-secondary {
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-height: 48px;
}
.btn-reg-media {
    background: #ffffff;
    color: #0264A3;
    border: 1.5px solid #0264A3;
}
.btn-reg-media:hover {
    background: rgba(27, 79, 138, 0.05);
}
.btn-reg-corr {
    background: var(--primary);
    color: #ffffff;
    border: 1.5px solid #0264A3;
}
.btn-reg-corr:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Validation UI Error Text */
.invalid-feedback {
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

/* Responsive */
@media (max-width: 860px) {
    .main-row {
        flex-direction: column;
        gap: 2rem;
    }
    .left-col {
        padding: 0 20px;
    }
    .right-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 440px;
    }
    .tagline {
        font-size: auto;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.4rem;
    }
    .register-grid-row {
        grid-template-columns: 1fr;
    }
}