/* Log in / sign up / reset: guns' auth pages 1:1 (rules from their stylesheet; their purple mapped to our pink). */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #0a0a0a; color: #fafafa; font: 400 16px/1.5 Satoshi, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }

.au-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 35px 20px; position: relative; overflow: hidden; background: #0a0a0a; }
.au-panel { position: relative; z-index: 1; width: 100%; max-width: 448px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 28px;
  background: #121212; border: 2px solid #191919; border-radius: 26px; }
.au-brand { display: flex; flex-direction: column; gap: 15px; }
.au-brand > a { display: inline-flex; width: fit-content; }
.au-logo { height: 52px; width: auto; object-fit: contain; }
.au-text { display: flex; flex-direction: column; gap: 9px; }
.au-title { margin: 0; color: #fafafa; font-size: 22.5px; font-weight: 600; line-height: 30px; }
.au-sub { margin: 0; color: #c4c4c4; font-size: 15px; line-height: 21px; max-width: 33rem; }
.au-body { display: flex; flex-direction: column; gap: 15px; }
.au-body[hidden], .au-step[hidden] { display: none; }
.au-step { display: flex; flex-direction: column; gap: 15px; }
.au-section { display: flex; flex-direction: column; gap: 12px; }
.au-section.tight { gap: 7px; }
.au-section.email { gap: 6px; }
.au-stack { display: flex; flex-direction: column; }

/* field: label, then the input with an icon (and an optional "isnt.lol/" prefix) inside */
.au-field { width: 100%; }
.au-field > h1, .au-field > label { display: block; margin: 0 0 5.5px 3px; color: #ddd; font-size: 16px; font-weight: 500; line-height: 22px; }
.au-wrap { position: relative; display: flex; align-items: center; border-radius: .5rem; direction: ltr; }
.au-pre { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; align-items: center; padding: .5rem; font-weight: 600; white-space: nowrap; user-select: none; pointer-events: none; }
.au-pre i { width: 25px; font-size: 21px; color: #666; text-align: center; }
.au-pre svg { display: block; width: 25px; height: 25px; color: #666; }
.au-pre b { margin-left: 7px; color: #777; font-size: 16px; font-weight: 500; }
.au-input { width: 100%; padding: 10px 12px 10px 40px; border: 2px solid transparent; border-radius: 15px; background: #0c0c0c; color: #eee; font: 400 15px/21px Satoshi, sans-serif; outline: 0; user-select: text; transition: .3s; }
.au-input::placeholder { color: #8d8d8d; }
.au-input:focus, .au-input:hover { border-color: #191919; }
.au-input:disabled { opacity: .9; }
.au-eye { position: absolute; right: 15px; display: flex; padding: 5px; border: 0; border-radius: 10px; background: none; color: #bbb; font-size: 17px; cursor: pointer; transition: .3s; }
.au-eye:hover { background: rgba(250, 250, 250, .137); }
.au-eye:active { transform: translateY(3px); }
.au-input.has-eye { padding-right: 52px; }

/* login: the password slides in once an email is typed */
.au-reveal { display: flex; flex-direction: column; gap: 6px; margin-top: 0; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none; transform-origin: center top;
  transition: max-height .78s cubic-bezier(.16, 1, .3, 1), opacity .55s, transform .72s cubic-bezier(.16, 1, .3, 1), margin-top .72s cubic-bezier(.16, 1, .3, 1); }
.au-reveal.open { margin-top: 12px; max-height: 260px; opacity: 1; transform: none; pointer-events: auto; }
.au-reveal > * { opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .64s cubic-bezier(.16, 1, .3, 1); }
.au-reveal.open > * { opacity: 1; transform: none; transition-delay: .08s; }

/* password strength */
.au-meter { display: flex; align-items: center; gap: 6px; padding: 0 4px; margin-top: 8px; }
.au-meter[hidden] { display: none; }
.au-meter i { height: 6px; flex: 1; border-radius: 4px; background: #2a2a2a; transition: background .2s; }
.au-meter i.on { background: #1fb86b; }
.au-meter span { margin-left: 6px; color: #aaa; font-size: 14px; font-weight: 500; white-space: nowrap; }
.au-helper { margin: -2px 0 0; color: #a0a0a0; font-size: 13.5px; line-height: 1.5; }
.au-helper[hidden] { display: none; }
.au-helper button { padding: 0; border: 0; background: none; color: #f2a7c8; cursor: pointer; font: inherit; }
.au-helper button:hover { color: #ffc4dd; }
.au-status { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 5px 2px; color: #a7a7a7; font-size: 13.5px; font-weight: 500; }
.au-status[hidden] { display: none; }
.au-status i { font-size: 15px; }
.au-status.ok { color: #5fda98; }
.au-status.bad { color: #ff7f7f; }

/* buttons */
.au-actions { display: flex; flex-direction: column; gap: 12px; }
.au-primary, .au-secondary { width: 100%; padding: 9px 18px; border-radius: 20px; font-size: 16px; font-weight: 450; line-height: 22px; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, opacity .2s; }
.au-primary { background: rgba(242, 125, 179, .204); color: #fff; border: 2px solid rgba(149, 63, 103, .384); }
.au-primary:hover:not(:disabled) { background: rgba(242, 125, 179, .25); border-color: rgba(163, 73, 115, .514); }
.au-secondary { background: #171717; color: #fafafa; border: 2px solid #202020; }
.au-secondary:hover:not(:disabled) { background: #1d1d1d; border-color: #252525; }
.au-primary:active:not(:disabled), .au-secondary:active:not(:disabled) { transform: translateY(2px); }
.au-primary:disabled, .au-secondary:disabled { opacity: .72; cursor: default; }
.au-primary.create { margin-top: 10px; }
.au-divider { display: flex; align-items: center; gap: 14px; color: #818181; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: #222; }
.au-divider[hidden], .au-socials[hidden] { display: none; }
.au-socials { display: flex; flex-direction: column; gap: 15px; }
.au-social { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid #1c1c1c; border-radius: 17px;
  background: #171717; color: #fafafa; font-size: 16px; font-weight: 450; text-decoration: none; cursor: pointer; transition: transform .2s, border-color .2s, background-color .2s; }
.au-social:hover { border-color: #232323; background: #1c1c1c; }
.au-social:active { transform: translateY(2px); }
.au-social i, .au-social svg { font-size: 22px; width: 22px; height: 22px; }
.au-badge { position: absolute; top: -12px; right: -14px; padding: 4px 7px; border: 2px solid #212121; border-radius: 999px; background: #1c1c1c; color: #d5d5d5; font-size: 11.5px; line-height: 1.2; pointer-events: none; }

/* footer and messages */
.au-footer { color: #dbdbdb; text-align: center; font-size: 15px; line-height: 21px; }
.au-footer-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.au-link { color: #f2a7c8; text-decoration: none; font-weight: 450; transition: .25s; }
.au-link:hover { color: #f7bcd5; }
.au-textbtn { padding: 0; border: 0; background: none; color: #9f9f9f; cursor: pointer; transition: color .2s; }
.au-textbtn:hover { color: #ffc4dd; }
.au-error { display: flex; justify-content: center; width: 100%; padding: 10px; border: 2px solid rgba(255, 0, 0, .145); border-radius: 15px; background: rgba(255, 0, 0, .22); color: #fafafa; text-align: center; }
.au-error.ok { border-color: rgba(31, 184, 107, .25); background: rgba(31, 184, 107, .16); }
.au-error[hidden] { display: none; }

/* sign up: going back, and the card with what you already entered */
.au-back { display: inline-flex; align-items: center; gap: 3px; width: fit-content; margin: -2px 0 0; padding: 0; border: 0; background: none; color: #a8a8a8; font-size: 14px; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: color .2s, transform .2s; }
.au-back i { width: 18px; color: #b8b8b8; font-size: 13px; text-align: center; transition: color .2s; }
.au-back:hover { color: #fafafa; } .au-back:hover i { color: #f1f1f1; }
.au-back:active { transform: translateY(1px); }
.au-summary { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 16px; border: 2px solid #161616; border-radius: 20px; background: #111; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.au-summary:hover { background: #151515; border-color: #1f1f1f; }
.au-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.au-summary-label { color: #b6b6b6; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.au-summary-edit { display: inline-flex; align-items: center; gap: 6px; color: #8f8f8f; font-size: 13px; font-weight: 500; transition: color .2s; }
.au-summary-edit i { font-size: 12px; }
.au-summary:hover .au-summary-edit { color: #d7d7d7; }
.au-summary-value { color: #fafafa; font-size: 16px; font-weight: 500; word-break: break-word; }
.au-provider { display: flex; align-items: center; gap: 12px; padding-bottom: 2px; }
.au-provider-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border: 1px solid #232323; border-radius: 14px; background: #171717 center / cover; color: #f3f3f3; font-size: 20px; }
.au-provider-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.au-provider-meta small { color: #8e8e8e; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.au-provider-meta b { color: #fafafa; font-size: 15px; font-weight: 600; }

/* checkboxes */
.au-agreements { display: flex; flex-direction: column; gap: 12px; }
.au-check { display: flex; align-items: flex-start; gap: 11px; color: #d6d6d6; font-size: 15px; line-height: 1.55; cursor: pointer; }
.au-check input { position: absolute; opacity: 0; pointer-events: none; }
.au-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #2a2a2a; border-radius: 6px; background: #0f0f0f; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.au-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .1s; }
.au-check input:checked + .au-box { background: #e0679f; border-color: #e0679f; }
.au-check input:checked + .au-box svg { opacity: 1; }
.au-check input:focus-visible + .au-box { box-shadow: 0 0 0 3px rgba(242, 125, 179, .35); }
.au-check a { color: #999; text-decoration: none; }
.au-check a:hover { color: #ccc; }

/* "Please verify yourself." (Cloudflare Turnstile) */
.au-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: rgba(0, 0, 0, .66); }
.au-modal[hidden] { display: none; }
.au-modal-card { width: fit-content; max-width: 100%; border: 2px solid #151515; border-radius: 20px; background: #111; color: #fafafa; }
.au-modal-card h2 { margin: 0; padding: 10px 14px 12px; font-size: 15.5px; font-weight: 550; text-align: center; }
.au-modal-card > div { display: flex; justify-content: center; padding: 6px 20px 20px; min-width: 300px; min-height: 65px; }

@media (max-width: 560px) {
  .au-page { padding: 35px 14px; }
  .au-panel { gap: 16px; padding: 24px; }
  .au-title { font-size: 20px; }
  .au-sub { font-size: 14px; }
}
