/* Shared styling untuk halaman auth (login, register, forgot password). */
body.auth-split { background: #fff; font-family: 'Inter', sans-serif; }

.auth-split-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 100vh;
}

.auth-side {
    background: linear-gradient(160deg, #4f46e5 0%, #7c3aed 60%, #6d28d9 100%);
    color: #fff;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-side::before, .auth-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.auth-side::before { width: 220px; height: 220px; bottom: -60px; left: -50px; }
.auth-side::after { width: 130px; height: 130px; top: 50%; right: -40px; }

.auth-side-logo {
    position: relative; z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: max-content;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.auth-side-logo img {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}
.auth-side-title { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 800; margin-top: 26px; }
.auth-side-tagline { position: relative; z-index: 1; font-size: 0.95rem; opacity: 0.9; margin-top: 6px; }
.auth-side-list { position: relative; z-index: 1; margin-top: 26px; padding: 0; list-style: none; }
.auth-side-list li { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 0.9rem; }
.auth-side-list i { color: #c7d2fe; }
.auth-side-footer { position: relative; z-index: 1; margin-top: auto; font-size: 0.78rem; opacity: 0.7; }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 30px 24px; }
.auth-form-card { width: 100%; max-width: 420px; }
.auth-form-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; color: #0f172a; }
.auth-form-card .auth-sub { color: #64748b; margin-bottom: 26px; }
.auth-form-card label.form-label { font-size: 0.82rem; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.auth-form-card .form-control {
    border-radius: 10px; padding: 12px 14px;
    background: #f1f5f9; border: 1.5px solid transparent;
    font-size: 0.92rem;
}
.auth-form-card .form-control:focus {
    background: #fff; border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.auth-form-card .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-form-card .password-toggle {
    background: #f1f5f9; border: 1.5px solid transparent;
    border-left: 0; color: #64748b; padding: 0 14px;
    border-top-right-radius: 10px; border-bottom-right-radius: 10px;
}
.auth-form-card .password-toggle:hover { color: #1f2937; }

.auth-btn-submit {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff; font-weight: 800;
    border: 0; border-radius: 10px;
    padding: 13px 16px; width: 100%;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-btn-submit:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0;
    color: #94a3b8; font-size: 0.72rem;
    letter-spacing: 0.16em; font-weight: 700;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-link-row { text-align: center; color: #64748b; font-size: 0.9rem; }
.auth-link-row a { color: #4f46e5; font-weight: 700; }
.auth-link-row a:hover { color: #7c3aed; }
.forgot-link { color: #4f46e5; font-weight: 700; font-size: 0.82rem; }
.forgot-link:hover { color: #7c3aed; }

/* Captcha box */
.captcha-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.captcha-box.verified { background: #f0fdf4; border-color: #86efac; }
.captcha-checkbox {
    width: 24px; height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    background: #fff;
}
.captcha-box.verified .captcha-checkbox { background: #22c55e; border-color: #22c55e; }
.captcha-box.verified .captcha-checkbox::after { content: '✓'; color: #fff; font-weight: bold; font-size: 14px; }
.captcha-question { font-weight: 700; color: #1f2937; }
.captcha-input {
    width: 70px;
    background: #fff; border: 1.5px solid #cbd5e1;
    border-radius: 8px; padding: 8px 10px;
    font-weight: 700; text-align: center;
    outline: none;
}
.captcha-input:focus { border-color: #4f46e5; }
.captcha-refresh { background: transparent; border: 0; color: #64748b; cursor: pointer; padding: 4px; }
.captcha-refresh:hover { color: #4f46e5; }
.captcha-label { color: #475569; font-size: 0.9rem; }

@media (max-width: 768px) {
    .auth-split-layout { grid-template-columns: 1fr; }
    .auth-side { min-height: auto; padding: 28px 22px; }
    .auth-side-list { display: none; }
}
