/* tagihankita auth pages (login / register) */
:root {
    --au-navy: #001F45;
    --au-navy-dark: #00122e;
    --au-grad: linear-gradient(115deg, #032754 0%, #164391 58%, #343f94 100%);
    --au-yellow: #ffdf7e;
    --au-ink: #032754;
    --au-heading: #5d596c;
    --au-body: #6f6b7d;
    --au-muted: #a5a3ae;
    --au-border: #dbdade;
    --au-bg: #f8f7fa;
    --au-danger: #ea5455;
    --au-success: #28c76f;
}
* { box-sizing: border-box; }
body.au { margin: 0; background: var(--au-bg); font-family: "Public Sans", system-ui, sans-serif; color: var(--au-body); -webkit-font-smoothing: antialiased; }
.au h1, .au h2, .au p { margin: 0; }
.au a { color: var(--au-navy); text-decoration: none; }
.au a:hover { color: var(--au-navy-dark); }
.au input::placeholder { color: var(--au-muted); }
.au-page { min-height: 100vh; display: flex; }

/* Desktop aside */
.au-aside { flex: 0 0 46%; max-width: 620px; position: relative; overflow: hidden; background: var(--au-grad); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.au-aside-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -200px; right: -120px; background: radial-gradient(circle, rgba(125, 211, 252, .22), rgba(125, 211, 252, 0) 70%); pointer-events: none; }
.au-aside-ring { position: absolute; width: 360px; height: 360px; border-radius: 50%; left: -160px; bottom: -180px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 40px rgba(255, 255, 255, .035), 0 0 0 80px rgba(255, 255, 255, .025); pointer-events: none; }
.au-aside-logo { position: relative; display: flex; }
.au-aside-logo img { height: 34px; width: auto; display: block; filter: brightness(0) invert(1); }
.au-aside-body { position: relative; display: flex; flex-direction: column; gap: 28px; }
.au-aside-body h1 { font-weight: 800; font-size: 40px; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.au-aside-copy { position: relative; font-size: 13px; color: #a9bbdc; }
.au-summary { max-width: 440px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; overflow: hidden; }
.au-summary-head { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.au-summary-head small, .au-summary-foot small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a9bbdc; }
.au-summary-head strong { display: block; font-size: 15px; margin-top: 2px; }
.au-summary-badge { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; background: rgba(40, 199, 111, .2); color: #6ee7a8; }
.au-summary-list { padding: 6px 18px; }
.au-summary-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.au-summary-row:last-child { border-bottom: 0; }
.au-summary-av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.au-summary-name { flex: 1; font-size: 14px; color: #eff4ff; }
.au-summary-amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.au-summary-row i { font-size: 17px; }
.au-summary-row i.is-paid { color: #6ee7a8; }
.au-summary-row i.is-pending { color: var(--au-yellow); }
.au-summary-foot { padding: 14px 18px; background: rgba(0, 0, 0, .14); display: flex; justify-content: space-between; align-items: baseline; }
.au-summary-foot small { color: var(--au-yellow); }
.au-summary-foot strong { font-size: 24px; font-weight: 800; color: var(--au-yellow); font-variant-numeric: tabular-nums; }

/* Main + card */
.au-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.au-mhead { display: none; }
.au-wrap { flex: 1; display: flex; justify-content: center; align-items: center; padding: 48px 32px; }
.au-card { width: 100%; max-width: 420px; position: relative; background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(47, 43, 61, .08); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.au-switch { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(0, 31, 69, .06); }
.au-switch a { flex: 1; padding: 10px; border-radius: 7px; text-align: center; font-weight: 600; font-size: 14px; color: var(--au-body) !important; }
.au-switch a.is-active { background: #fff; color: var(--au-navy) !important; box-shadow: 0 1px 4px rgba(0, 18, 46, .12); }
.au-step-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(0, 31, 69, .08); color: var(--au-navy); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.au-input.is-readonly { background: var(--au-bg); }
.au-input.is-readonly input { color: var(--au-body); }
.au-input.is-readonly .au-lock-note { font-size: 12px; font-weight: 600; color: var(--au-muted); white-space: nowrap; }
.au-sent { display: flex; flex-direction: column; gap: 14px; }
.au-sent-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--au-heading); }
.au-sent-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.au-sent-steps b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--au-navy); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.au-back { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; }
.au-back i { font-size: 18px; }
.au-hint { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--au-body); }
.au-hint i { color: var(--au-success); font-size: 16px; }
.au-title { display: flex; flex-direction: column; gap: 6px; }
.au-title h2 { font-size: 26px; font-weight: 700; color: var(--au-navy); letter-spacing: -.01em; }
.au-title p { font-size: 14px; line-height: 1.55; text-wrap: pretty; }

.au-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.au-alert i { font-size: 18px; flex: none; }
.au-alert ul { margin: 0; padding: 0; list-style: none; }
.au-alert.is-danger { background: rgba(234, 84, 85, .1); color: #c73b3c; }
.au-alert.is-warning { background: rgba(255, 159, 67, .12); color: #c86f1c; }
.au-alert.is-success { background: rgba(40, 199, 111, .12); color: #1f9d57; }

/* Form */
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-field { display: flex; flex-direction: column; gap: 6px; }
.au-label { font-size: 13px; font-weight: 600; color: var(--au-heading); }
.au-label-row { display: flex; justify-content: space-between; align-items: center; }
.au-label-row a { font-size: 13px; font-weight: 600; }
.au-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--au-border); background: #fff; transition: border-color .15s, box-shadow .15s; }
.au-input.has-action { padding-right: 6px; }
.au-input:focus-within { border-color: var(--au-navy); box-shadow: 0 0 0 3px rgba(0, 31, 69, .12); }
.au-input.is-invalid { border-color: var(--au-danger); }
.au-input > i { font-size: 18px; color: var(--au-muted); }
.au-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: 15px "Public Sans", sans-serif; color: var(--au-heading); background: transparent; }
.au-pw-toggle { width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--au-body); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.au-pw-toggle:hover { background: rgba(0, 31, 69, .06); }
.au-strength { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.au-strength-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.au-strength-bars span { height: 4px; border-radius: 2px; background: #ebeaef; transition: background .2s; }
.au-strength-label { font-size: 12px; font-weight: 600; color: var(--au-muted); min-width: 84px; text-align: right; }
.au-turnstile { display: flex; justify-content: center; }
.au-field-error { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--au-danger); }
.au-submit { margin-top: 6px; height: 52px; border: 0; border-radius: 4px; background: var(--au-navy); color: #fff; font: 600 16px "Public Sans", sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 4px 4px 0 var(--au-yellow); transition: transform .15s, box-shadow .15s, background-color .15s; }
.au-submit i { font-size: 18px; }
.au-submit:hover { background: var(--au-navy-dark); box-shadow: 6px 6px 0 var(--au-yellow); transform: translate(-2px, -2px); }
.au-submit:active { transform: none; box-shadow: 4px 4px 0 var(--au-yellow); }
.au-submit:disabled { cursor: not-allowed; opacity: .85; transform: none; }
.au-spin { animation: au-spin 1s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-perk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: rgba(255, 223, 126, .28); font-size: 13px; line-height: 1.5; color: var(--au-heading); }
.au-perk b { color: var(--au-ink); }
.au-perk-icon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--au-yellow); color: var(--au-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.au-foot { text-align: center; font-size: 14px; }
.au-foot a { font-weight: 700; }

/* OTP */
.au-steps { max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.au-steps-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); }
.au-steps-item.is-current { background: rgba(255, 255, 255, .12); border-color: rgba(255, 223, 126, .5); }
.au-steps-item.is-next { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .22); }
.au-steps-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: rgba(40, 199, 111, .2); color: #6ee7a8; }
.au-steps-item.is-current .au-steps-dot { background: var(--au-yellow); color: var(--au-ink); font-size: 14px; font-weight: 800; }
.au-steps-item.is-next .au-steps-dot { background: rgba(255, 255, 255, .1); color: var(--au-yellow); }
.au-steps-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.au-steps-text strong { font-size: 15px; }
.au-steps-text span { font-size: 13px; color: #c9d6ee; }
.au-steps-tag { font-size: 13px; font-weight: 700; color: var(--au-yellow); }
.au-otp-head { display: flex; justify-content: space-between; align-items: center; }
.au-timer { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--au-success); font-variant-numeric: tabular-nums; }
.au-timer i { font-size: 16px; }
.au-timer.is-low { color: #ff9f43; }
.au-timer.is-expired { color: var(--au-danger); }
.au-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.au-otp input { width: 100%; height: 56px; border-radius: 8px; border: 1px solid var(--au-border); background: #fff; text-align: center; font: 700 24px "Public Sans", sans-serif; color: var(--au-navy); outline: 0; padding: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.au-otp input:focus { border-color: var(--au-navy); box-shadow: 0 0 0 3px rgba(0, 31, 69, .12); }
.au-otp input.is-filled { border: 1.5px solid var(--au-navy); background: rgba(0, 31, 69, .04); }
.au-otp.is-invalid input { border: 1.5px solid var(--au-danger); background: rgba(234, 84, 85, .05); }
.au-otp input:disabled { background: var(--au-bg); }
.au-timebar { height: 4px; border-radius: 2px; background: #ebeaef; overflow: hidden; }
.au-timebar div { height: 100%; border-radius: 2px; background: var(--au-success); transition: width 1s linear, background .2s; }
.au-submit:disabled:not(.is-busy) { background: #ebeaef; color: var(--au-muted); box-shadow: none; opacity: 1; }
.au-resend { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--au-bg); }
.au-resend form { margin: 0; }
.au-resend-text { display: flex; flex-direction: column; gap: 2px; }
.au-resend-text strong { font-size: 13px; color: var(--au-heading); }
.au-resend-text span { font-size: 12px; }
.au-resend-text span.is-danger { color: var(--au-danger); }
.au-resend-btn { flex: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--au-border); background: #fff; color: var(--au-navy); font: 600 13px "Public Sans", sans-serif; cursor: pointer; }
.au-resend-btn:hover { border-color: var(--au-navy); }
.au-resend-btn i { font-size: 16px; }

/* Mobile / tablet (< 960px) */
@media (max-width: 959.98px) {
    .au-aside, .au-title, .au-step-icon { display: none; }
    .au-mhead { display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; background: var(--au-navy); padding: 16px 20px 72px; }
    .au-mhead-bg { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(22, 67, 145, .9) 0%, rgba(0, 31, 69, 0) 70%); pointer-events: none; }
    .au-mhead-ring { position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -170px; top: -150px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 36px rgba(255, 255, 255, .03), 0 0 0 72px rgba(255, 255, 255, .02); pointer-events: none; }
    .au-mhead-nav, .au-mhead-text { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
    .au-mhead-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; }
    .au-mhead-nav img { height: 24px; width: auto; display: block; filter: brightness(0) invert(1); }
    .au-icon-btn { width: 44px; height: 44px; border-radius: 10px; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 22px; }
    .au-icon-btn:hover { background: rgba(255, 255, 255, .08); }
    .au-icon-btn.is-left { margin-left: -10px; }
    .au-icon-btn.is-right { margin-right: -10px; }
    .au-mhead-text { display: flex; flex-direction: column; gap: 8px; }
    .au-mhead-text span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--au-yellow); }
    .au-mhead-text h1 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
    .au-mhead-text p { font-size: 14px; line-height: 1.55; color: #c9d6ee; text-wrap: pretty; }
    .au-wrap { align-items: flex-start; padding: 0 16px 40px; }
    .au-otp { gap: 8px; }
    .au-card { margin-top: -48px; padding: 24px 20px; box-shadow: 0 8px 30px rgba(0, 18, 46, .12); }
}

@media (prefers-reduced-motion: reduce) {
    .au-submit, .au-input { transition: none; }
    .au-spin { animation: none; }
}
