/* Halaman Masuk — gaya mengikuti beranda (Figma JagoUMKM). */
.jg-auth main { margin-top: -93px; overflow: hidden; }
.jg-auth main > .container:first-child { padding-top: 100px; }

.au-wrap { position: relative; padding: 140px 0 100px; isolation: isolate; }
.au-wrap::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, #ffe69d 0%, #fff8e1 50%, #fff 100%); }
.au-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: auFloat 14s ease-in-out infinite; }
.au-blob.b1 { width: 360px; height: 360px; left: -100px; top: 90px; background: #ffd24d; }
.au-blob.b2 { width: 320px; height: 320px; right: -80px; bottom: 40px; background: #b9e88f; animation-delay: -6s; }

.au-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: 0 auto; border-radius: 32px; background: #fff; box-shadow: 0 40px 90px -40px rgba(4, 83, 43, .45); overflow: hidden; }

/* Panel kiri */
.au-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 40px 0; color: #fff; background: linear-gradient(160deg, #6bc021 0%, #2bb15a 60%, #0c8035 100%); overflow: hidden; }
.au-side::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.au-side::after { content: ""; position: absolute; width: 260px; height: 260px; left: -120px; bottom: 120px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.au-side-text { position: relative; z-index: 1; }
.au-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 40px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.au-side h2 { margin: 18px 0 0; font-family: var(--jg-display); font-size: 34px; line-height: 42px; font-weight: 700; color: #fff; }
.au-side ul { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.au-side li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.au-side li img { padding: 3px; border-radius: 50%; background: #fff; }
.au-side-img { position: relative; z-index: 1; display: block; width: 112%; max-width: none; height: auto; margin: 26px -6% 0; }

/* Formulir */
.au-form-wrap { padding: 44px 48px 40px; }
.au-logo img { width: 151px; height: 51px; object-fit: contain; }
.au-form-wrap h1 { margin: 22px 0 0; font-family: var(--jg-display); font-size: 36px; line-height: 44px; font-weight: 700; color: var(--jg-green-dark); }
.au-sub { margin: 4px 0 24px; color: #6b7280; }
.au-field { margin-bottom: 16px; }
.au-field .form-label { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--jg-black); }
.au-input { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border: 1.5px solid #e3e8e0; border-radius: 14px; background: #fafcf8; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.au-input:focus-within { border-color: var(--jg-green-light); background: #fff; box-shadow: 0 0 0 4px rgba(113, 192, 30, .15); }
.au-input.is-invalid { border-color: #ef4444; }
.au-input > i { color: #9aa59f; font-size: 17px; }
.au-input input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; outline: 0; font-size: 15px; color: var(--jg-black); }
.au-eye { border: 0; background: none; padding: 6px; color: #6b7280; cursor: pointer; }
.au-eye:hover { color: var(--jg-green-dark); }
.au-error { margin-top: 6px; font-size: 13px; color: #dc2626; }
.au-captcha { display: flex; align-items: center; gap: 10px; }
.au-captcha img { display: block; width: 210px; max-width: calc(100% - 56px); height: auto; border: 1.5px solid #e3e8e0; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.au-refresh { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid #e3e8e0; border-radius: 12px; background: #fff; color: var(--jg-green-dark); font-size: 20px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.au-refresh:hover { border-color: var(--jg-green-light); background: #f3f8ef; }
.au-refresh.is-spinning i { animation: auSpin .6s linear; }
.au-captcha-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 700; }
.au-captcha-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.au-remember { margin: 4px 0 20px; }
.au-remember .form-check-input:checked { background-color: var(--jg-green-dark); border-color: var(--jg-green-dark); }
.au-submit { height: 54px; }
.au-link { font-weight: 700; color: var(--jg-green-dark); text-decoration: none; }
.au-link:hover { color: var(--jg-green-light); }
.au-foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: #6b7280; }
.au-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes auFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -24px, 0) scale(1.08); } }
@keyframes auSpin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .jg-auth main { margin-top: -74px; }
  .au-wrap { padding: 110px 0 70px; }
  .au-card { grid-template-columns: 1fr; max-width: 560px; }
  .au-side { display: none; }
}
@media (max-width: 575.98px) {
  .au-card { border-radius: 24px; }
  .au-form-wrap { padding: 30px 22px 28px; }
  .au-form-wrap h1 { font-size: 28px; line-height: 36px; }
}

/* ---------- Versi ringkas: tombol Masuk terlihat tanpa scroll (layar ≥ 720 px) ---------- */
.au-wrap { padding: 112px 0 56px; }
.au-card { max-width: 960px; border-radius: 28px; }
.au-side { padding: 32px 32px 0; }
.au-side h2 { margin-top: 14px; font-size: 28px; line-height: 35px; }
.au-side ul { gap: 9px; margin-top: 16px; }
.au-side li { font-size: 14px; }
.au-side-img { width: 100%; max-width: 400px; margin: 14px auto 0; align-self: center; }
.au-form-wrap { padding: 30px 40px 26px; }
.au-logo img { width: 120px; height: 40px; }
.au-form-wrap h1 { margin-top: 12px; font-size: 28px; line-height: 34px; }
.au-sub { margin: 2px 0 16px; font-size: 14px; }
.au-field { margin-bottom: 12px; }
.au-field .form-label { margin-bottom: 4px; font-size: 13px; }
.au-input input { height: 42px; font-size: 14px; }
.au-input { border-radius: 12px; }
.au-captcha img { width: 168px; }
.au-refresh { width: 40px; height: 40px; font-size: 18px; }
.au-remember { margin: 2px 0 14px; font-size: 14px; }
.au-submit { height: 48px; }
.au-foot { margin-top: 14px; font-size: 13px; }
@media (max-width: 991.98px) { .au-wrap { padding: 96px 0 50px; } }
@media (max-width: 575.98px) { .au-form-wrap { padding: 24px 20px 22px; } .au-form-wrap h1 { font-size: 24px; line-height: 30px; } }
.au-lock { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 14px; background: #fef2f2; color: #991b1b; font-size: 13px; line-height: 19px; }
.au-lock[hidden] { display: none; }
.au-lock > i { font-size: 22px; line-height: 1; color: #dc2626; }
.au-lock strong { display: block; font-size: 14px; }
.au-lock b { font-variant-numeric: tabular-nums; }
.au-submit:disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; background: #9ca3af; }

/* ---------- Kartu tunggal: lupa & reset password ---------- */
.au-card.is-single { grid-template-columns: 1fr; max-width: 500px; }
.au-badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: 18px; border-radius: 18px; background: linear-gradient(135deg, #6bc021, #0c8035); color: #fff; font-size: 26px; box-shadow: 0 14px 30px -12px rgba(12, 128, 53, .6); }
.au-card.is-single h1 { margin-top: 14px; }
.au-success { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 14px; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 19px; }
.au-success > i { font-size: 22px; line-height: 1; color: #16a34a; }
.au-success strong { display: block; font-size: 14px; }
.au-input.is-readonly input[readonly] { color: #6b7280; cursor: default; }
.au-meter { height: 5px; margin-top: 8px; border-radius: 5px; background: #eef2ea; overflow: hidden; }
.au-meter span { display: block; width: 0; height: 100%; border-radius: 5px; transition: width .25s, background-color .25s; }
.au-meter .lv1 { background: #ef4444; }
.au-meter .lv2 { background: #f59e0b; }
.au-meter .lv3 { background: #84cc16; }
.au-meter .lv4 { background: #16a34a; }

/* ---------- Popup verifikasi OTP pendaftaran ---------- */
body.otp-open { overflow: hidden; }
.otp-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
  background: rgba(4, 40, 22, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease; }
.otp-overlay.is-visible { opacity: 1; }
.otp-card { position: relative; width: 100%; max-width: 440px; margin: auto; padding: 34px 30px 26px; border-radius: 28px; background: #fff; text-align: center; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: translateY(24px) scale(.94); transition: transform .45s cubic-bezier(.2, .9, .3, 1.25); }
.otp-overlay.is-visible .otp-card { transform: none; }
.otp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #ffc21a, #6bc021 45%, #0c8035); }
.otp-card h2 { margin: 18px 0 6px; font-family: var(--jg-display); font-size: 26px; line-height: 32px; font-weight: 700; color: var(--jg-green-dark); }
.otp-text { margin: 0 0 20px; font-size: 14px; line-height: 21px; color: #6b7280; }
.otp-email { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 20px; background: #f0f9eb; color: var(--jg-green-dark); font-weight: 700; }
.otp-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%; font-size: 38px; color: #fff;
  background: linear-gradient(135deg, #6bc021, #0c8035); box-shadow: 0 16px 34px -14px rgba(12, 128, 53, .8); animation: otpFloat 3s ease-in-out infinite; }
.otp-ring { position: absolute; inset: -8px; border: 2px solid rgba(107, 192, 33, .45); border-radius: 50%; animation: otpPulse 2s ease-out infinite; }
.otp-inputs { display: flex; justify-content: center; gap: 10px; }
.otp-digit { width: 56px; height: 64px; padding: 0; border: 2px solid #e3e8e0; border-radius: 16px; background: #fafcf8; text-align: center; font-size: 28px; font-weight: 800; color: var(--jg-green-dark);
  caret-color: var(--jg-green-light); outline: 0; transition: border-color .15s, box-shadow .15s, transform .15s, background-color .15s; }
.otp-digit:focus { border-color: var(--jg-green-light); background: #fff; box-shadow: 0 0 0 5px rgba(113, 192, 30, .18); transform: translateY(-2px); }
.otp-digit.is-filled { border-color: #9bd46a; background: #f4fbee; }
.otp-digit.is-error { border-color: #ef4444; background: #fef2f2; }
.otp-digit.is-success { border-color: #16a34a; background: #dcfce7; color: #15803d; animation: otpPop .35s ease both; }
.otp-digit.is-success:nth-child(2) { animation-delay: .05s; } .otp-digit.is-success:nth-child(3) { animation-delay: .1s; }
.otp-digit.is-success:nth-child(4) { animation-delay: .15s; } .otp-digit.is-success:nth-child(5) { animation-delay: .2s; }
.otp-msg { min-height: 20px; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.otp-msg.is-error { color: #dc2626; } .otp-msg.is-success { color: #15803d; } .otp-msg.is-info { color: #6b7280; }
.otp-timer { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 5px 12px; border-radius: 20px; background: #fff8e1; color: #92400e; font-size: 13px; }
.otp-timer b { font-variant-numeric: tabular-nums; }
.otp-timer.is-expired { background: #fef2f2; color: #b91c1c; }
.otp-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; }
.otp-actions form { margin: 0; }
.otp-link { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 700; color: var(--jg-green-dark); cursor: pointer; }
.otp-link:disabled { color: #9ca3af; cursor: not-allowed; }
.otp-link.is-muted { color: #6b7280; font-weight: 600; }
.otp-link:not(:disabled):hover { color: var(--jg-green-light); }
.otp-hint { margin: 14px 0 0; font-size: 12px; color: #9ca3af; }
.otp-card.is-shake { animation: otpShake .45s ease; }
.otp-check { width: 96px; height: 96px; margin: 0 auto; }
.otp-check svg { width: 100%; height: 100%; }
.otp-check circle { stroke: #16a34a; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: otpDraw .6s ease forwards; }
.otp-check path { stroke: #16a34a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: otpDraw .4s .5s ease forwards; }
.otp-card.is-done .otp-check { border-radius: 50%; background: #f0fdf4; box-shadow: 0 0 0 10px rgba(22, 163, 74, .08); }
.otp-confetti { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.otp-card.is-done .otp-confetti { opacity: 1; background:
  radial-gradient(circle, #ffc21a 3px, transparent 4px) 12% 18% / 0 0 no-repeat,
  radial-gradient(circle, #6bc021 3px, transparent 4px) 88% 14% / 0 0 no-repeat; }
.otp-card.is-done .otp-confetti::before, .otp-card.is-done .otp-confetti::after { content: ""; position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: otpFall 1.6s ease-in forwards; }
.otp-card.is-done .otp-confetti::before { left: 20%; background: #ffc21a; box-shadow: 60px 10px 0 #6bc021, 140px -6px 0 #0c8035, 220px 4px 0 #f97316, 300px -2px 0 #ffc21a; }
.otp-card.is-done .otp-confetti::after { left: 8%; background: #0c8035; animation-delay: .2s; box-shadow: 90px 0 0 #f97316, 170px 8px 0 #ffc21a, 250px -4px 0 #6bc021, 330px 6px 0 #0c8035; }

@keyframes otpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes otpPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes otpPop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes otpShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
@keyframes otpDraw { to { stroke-dashoffset: 0; } }
@keyframes otpFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(420px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .otp-icon, .otp-ring, .otp-card.is-shake, .otp-confetti::before, .otp-confetti::after { animation: none !important; } }
@media (max-width: 420px) {
  .otp-card { padding: 28px 18px 22px; border-radius: 22px; }
  .otp-inputs { gap: 7px; }
  .otp-digit { width: 48px; height: 56px; font-size: 24px; border-radius: 13px; }
}

/* Panel kiri halaman daftar: paragraf deskripsi di bawah judul. */
.au-side-desc { margin: 14px 0 0; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .9); }
