/* Registration form pieces the 88VIP design does not style (errors, loading overlay, disabled buttons, LINE). */
.loading-panel { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .45); cursor: wait; }
.field-error { margin-top: 5px; font-size: 11px; font-weight: 500; color: #ff8a7a; }
html[data-theme=light] .field-error { color: #b5483b; }
.signup-form input.invalid { border-color: #e0604f !important; }
.signup-form .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.signup-form #sendCode { white-space: nowrap; min-width: 112px; justify-content: center; }
.signup-form #regTurnstile:not(:empty) { margin-top: 14px; }
.signup-form .form-message:empty { display: none; }
.signup-form .form-message.is-error { color: #ff8a7a; }
.signup-form .form-message.is-success { color: #8fd694; }
html[data-theme=light] .signup-form .form-message.is-error { color: #b5483b; }
html[data-theme=light] .signup-form .form-message.is-success { color: #2e7d32; }

/* success pop up after registering */
.reg-success-dialog { width: min(360px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 1px solid var(--orange, #d4a53a); border-radius: 16px; background: var(--panel, #141210); color: inherit; text-align: center; }
.reg-success-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.reg-success-dialog h3 { margin: 14px 0 20px; font-size: 20px; line-height: 1.35; }
.reg-success-dialog .btn { min-width: 120px; justify-content: center; }
.reg-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 30px; font-weight: 700; }

/* "Register with LINE" (LINE brand green #06C755) */
.line-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 14px; padding: 10px 18px; border: 0; border-radius: 999px; background: #06C755; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.line-button:hover { background: #05b34c; }
.line-or { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.line-or::before, .line-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.line-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid #06C755; border-radius: 8px; font-size: 12px; color: var(--muted); }
.line-linked strong { color: inherit; overflow-wrap: anywhere; }
.line-cancel { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.line-login-row[hidden], .line-linked[hidden] { display: none; }
/* LINE registration not launched yet: the button is hidden. To test, remove the "line-off" class from #lineLoginRow in devtools. */
.line-login-row.line-off { display: none; }
