:root {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;
  color:#202b40;
  background:#f7f8fc;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  --purple:#6746d4;
  --muted:#667085;
  --line:#e2e5ee;
}
* { box-sizing:border-box }
body { margin:0; font-size:16px; line-height:1.7; letter-spacing:.005em }
a { color:var(--purple); text-decoration:none }
a:hover { text-decoration:underline }
button,input { font:inherit; -webkit-tap-highlight-color:transparent }
button { cursor:pointer }
button:disabled { opacity:.5; cursor:not-allowed }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid #a894ee; outline-offset:4px }
[hidden] { display:none!important }
.layout { min-height:100svh; padding:42px 24px 24px }
.site-header { display:flex; justify-content:center; margin:0 auto 28px }
.brand { display:inline-flex; border-radius:8px }
.brand img { display:block; width:174px; height:auto }
.main { width:100%; max-width:480px; margin-inline:auto }
.card { padding:36px 38px; background:#fff; border:1px solid #e5e7ef; border-radius:20px; box-shadow:0 8px 32px #202b4005 }
.form-heading { text-align:center; margin-bottom:30px }
h1 { margin:0; font-size:30px; line-height:1.4; letter-spacing:-.035em; font-weight:650; text-wrap:balance }
.intro { margin:10px 0 0; font-size:15px; color:var(--muted); line-height:1.8 }
.button { width:100%; min-height:52px; padding:13px 18px; border:1px solid transparent; border-radius:10px; display:flex; justify-content:center; align-items:center; gap:12px; font-size:15px; font-weight:600; line-height:1.6; transition:background .15s,border-color .15s }
.primary { background:var(--purple); color:white; box-shadow:0 3px 8px #6746d412 }
.primary:hover { background:#5634bd }
.secondary,.google { background:white; border-color:#d9dfe9; color:#263149 }
.secondary:hover,.google:hover { background:#f7f5fc; border-color:#c7bddf }
.button+.button { margin-top:12px }
.google-mark { color:#4285f4; font-size:22px; line-height:1; font-weight:650 }
.divider { display:flex; align-items:center; gap:15px; margin:26px 0; color:#7b8494; font-size:12px }
.divider:before,.divider:after { content:''; height:1px; background:var(--line); flex:1 }
.field { margin-bottom:20px }
label { display:block; margin-bottom:8px; font-size:14px; font-weight:550 }
input { display:block; width:100%; min-width:0; height:52px; padding:12px 15px; font-size:16px; border:1px solid #d9dfe9; border-radius:9px; background:#fff; color:#202b40; transition:border-color .15s }
input::placeholder { color:#8992a3 }
input:focus { border-color:#8a6de0 }
.password-wrap { position:relative }
.password-wrap input { padding-right:68px }
.reveal { position:absolute; right:5px; top:5px; min-width:50px; height:42px; border:0; border-radius:6px; background:transparent; padding:0 10px; color:#667085; font-size:13px }
.reveal:hover { background:#f5f3fa }
.hint { color:var(--muted); font-size:13px; line-height:1.7; margin:-7px 0 24px }
.forgot-link { text-align:right; font-size:13px; margin:-4px 0 25px }
.switch { margin:28px 0 0; padding-top:24px; border-top:1px solid #edf0f5; color:var(--muted); text-align:center; font-size:14px; line-height:1.9 }
.switch a { font-weight:600; white-space:nowrap }
.description { margin:0 0 25px; color:var(--muted); font-size:15px; line-height:1.85 }
.notice { margin:0 0 24px; padding:13px 15px; border:1px solid #e5def5; border-radius:9px; background:#f6f2fd; color:#51407b; font-size:14px; line-height:1.8 }
.notice.error { border-color:#f1d3d0; background:#fff4f3; color:#963b37 }
.notice:empty { display:none }
#signup-result { margin:12px 0 0; overflow-wrap:anywhere }
#signup-result a { display:block; width:fit-content; margin-top:4px; font-weight:600; text-decoration:underline }
.preview-note { margin:24px auto 0; padding:0 14px; color:#667085; text-align:center; font-size:12px; line-height:1.9 }
.preview-note p { margin:7px 0 }
.preview-label { font-weight:550 }
.preview-note a { display:inline-flex; align-items:center; gap:6px; padding:4px 0; font-size:13px }
.page-footer { padding-top:22px; text-align:center; font-size:12px }
.page-footer a { color:#667085; display:inline-block; padding:6px }
.member-badge { display:grid; place-items:center; width:44px; height:44px; margin:0 auto 12px; border-radius:50%; background:#f2edfc; color:var(--purple); font-size:22px }
.welcome { margin:0; text-align:center; color:var(--purple); font-weight:550 }
.identity { display:grid; gap:5px; padding:20px; margin:24px 0; background:#fafbfe; border:1px solid var(--line); border-radius:12px }
.quiet { color:var(--muted); font-size:12px }
.identity strong { font-weight:550; font-size:15px; overflow-wrap:anywhere; margin-bottom:12px }
.verified { color:#39715a; font-size:13px }
.connection,.management { margin-top:28px; padding-top:24px; border-top:1px solid var(--line) }
.connection { margin-bottom:24px }
.connection h2,.management h2 { margin:0 0 10px; font-size:16px; font-weight:600 }
.connection p { color:var(--muted); font-size:14px; margin:0 }
.management .hint { margin:0 0 20px }
.danger { color:#963b37; border-color:#eac5c2; margin-top:12px }
.primary.danger { color:#fff; background:#a43c37; border-color:#a43c37 }
.primary.danger:hover { background:#8d302c }
.action-dialog { width:calc(100% - 40px); max-width:400px; border:1px solid var(--line); border-radius:16px; padding:28px; color:#263149 }
.action-dialog::backdrop { background:#202b4060 }
.action-dialog p { margin:0 0 24px }
#result,#account-content { overflow-wrap:anywhere }
#mailbox .identity { margin:16px 0 }
.identity code { font-size:24px; letter-spacing:5px; color:var(--purple) }
@media(max-width:540px) {
  .layout { padding:24px 20px }
  .site-header { margin-bottom:22px }
  .brand img { width:156px }
  .card { padding:28px 22px; border-radius:16px; box-shadow:none }
  h1 { font-size:28px }
  .form-heading { margin-bottom:26px }
  .intro { font-size:14px }
  .switch { font-size:13px }
  .preview-note { padding-inline:0 }
}
@media(prefers-reduced-motion:reduce) { * { transition:none!important } }

.bot-check { margin:22px 0; text-align:center; min-width:0 }
.verify-resend { margin-top:12px }
.verify-resend .bot-check,.verify-resend .notice { margin:12px 0 0 }
#bot-check { display:flex; justify-content:center; min-width:0 }
.bot-retry { color:var(--purple); background:#f7f5fc; border:1px solid var(--line); border-radius:8px; padding:8px 14px; font-size:13px }
