/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/styles/auth.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ===== SPACING SCALE ===== */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
}

/* ===== THEME SYSTEM ===== */
:root {
  --bg: #0b0e12;
  --panel: #0e141b;
  --text: #e8eef6;
  --muted: #a8b2bd;
  --border: #1e2630;
  --accent: #6aa7ff;
  --accent-2: #37e6b0;
  --warn: #ffcc66;
  --error: #ff6b6b;
  --ok: #37e6b0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --surface: #0f151c;
  --link: #9bc4ff;
  --link-underline: #9bc4ff;
  /* Strength (Okabe & Ito) */
  --weak: #d55e00;
  --fair: #e69f00;
  --good: #0072b2;
  --strong: #009e73;
  --footer-bg: linear-gradient(180deg, color-mix(in oklab, var(--bg), transparent 25%), var(--bg) 70%);
  --stroke: 0px;
}

[data-theme='light'] {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --text: #0a0e14;
  --muted: #5a6672;
  --border: #dbe3ea;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  --surface: #f3f6fa;
  --link: #0b57d0;
  --link-underline: #0b57d0;
  --footer-bg: linear-gradient(180deg, color-mix(in oklab, var(--bg), transparent 25%), var(--bg) 70%);
}

[data-theme='hc'] {
  --bg: #000;
  --panel: #0b0b0b;
  --text: #fff;
  --muted: #e0e0e0;
  --border: #ffffff;
  --accent: #34b4ff;
  --accent-2: #00e09d;
  --warn: #ffd24d;
  --error: #ff6b6b;
  --ok: #00e09d;
  --shadow: none;
  --surface: #000;
  --footer-bg: linear-gradient(180deg, #000, #000);
  --link: #58a6ff;
  --link-underline: #58a6ff;
  --stroke: 2px;
}

[data-theme='cb'] {
  --bg: #0b0e12;
  --panel: #0e141b;
  --text: #e8eef6;
  --muted: #a8b2bd;
  --border: #223043;
  --accent: #3aa7ff;
  --accent-2: #ffb000;
  --surface: #0f151c;
  --link: #7fc3ff;
  --link-underline: #7fc3ff;
  --footer-bg: linear-gradient(180deg, color-mix(in oklab, var(--bg), transparent 25%), var(--bg) 70%);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  padding-bottom: 96px;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

header.app {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    120% 120% at 20% 20%,
    var(--accent) 0%,
    #6a5cff 45%,
    var(--accent-2) 100%
  );
  box-shadow: var(--shadow);
}

.logo span {
  font-weight: 800;
}

.titles h1 {
  margin: 0;
  font-size: 20px;
}

.titles p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.kebab {
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

/* Panels */
.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 var(--stroke) var(--border), var(--shadow);
  border: 0;
  margin-top: 12px;
}

.panel .hd {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 -1px 0 var(--border);
}

.panel .hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.panel .bd {
  padding: 18px;
}

.muted {
  color: var(--muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.tab {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  opacity: 0.85;
  font-weight: 600;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

.tab[aria-selected='true'] {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent), transparent 55%),
    color-mix(in oklab, var(--accent), transparent 75%)
  );
  color: #fff;
  border-color: var(--accent);
  opacity: 1;
}

/* Forms */
form {
  display: grid;
  grid-gap: var(--space-5);
  gap: var(--space-5);
}

label {
  font-size: 13px;
  color: var(--muted);
}

.ctl {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

input,
select {
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
  width: 100%;
  font: inherit;
}

.ctl:focus-within {
  box-shadow: inset 0 0 0 var(--stroke) var(--border),
    0 0 0 4px color-mix(in oklab, var(--accent), transparent 65%);
}

.ctl.has-eye input {
  padding-right: 44px;
}

.row {
  display: grid;
  grid-gap: var(--space-4);
  gap: var(--space-4);
  grid-template-columns: repeat(12, 1fr);
}

.col-12 {
  grid-column: span 12;
}

.col-6 {
  grid-column: span 6;
}

@media (max-width: 720px) {
  .col-6 {
    grid-column: span 12;
  }
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-2);
}

/* Consent row */
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

.checkline input {
  width: auto;
  transform: translateY(2px);
}

.checkline a {
  color: var(--link);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--link-underline);
          text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1.5px;
}

.checkline a:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent), transparent 50%);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent), #1e63d8 40%));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

.btn.link {
  background: transparent;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent), transparent 50%);
  outline-offset: 2px;
}

.actions + * {
  margin-top: var(--space-5);
}

/* Password helpers */
.pw-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

/* Strength */
.strength {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: var(--space-2);
}

.strength .label {
  font-size: 12px;
  color: var(--muted);
  min-width: 72px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #394553;
  background: transparent;
}

.fill-weak {
  background: var(--weak);
  border-color: var(--weak);
}

.fill-fair {
  background: var(--fair);
  border-color: var(--fair);
}

.fill-good {
  background: var(--good);
  border-color: var(--good);
}

.fill-strong {
  background: var(--strong);
  border-color: var(--strong);
}

/* Fixed Footer */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: 12px 16px;
}

.bar {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.steps {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.step {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

.step.is-active {
  border-color: var(--accent);
  color: #cfe0ff;
}

/* Notice */
.notice {
  display: flex !important;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  height: 46px;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
  flex: 0 0 auto;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.notice.ok {
  background: linear-gradient(180deg, rgba(31, 69, 59, 0.32), rgba(31, 69, 59, 0.24));
  border-color: #1f453b;
  box-shadow: inset 0 0 0 var(--stroke) #1f453b;
  color: var(--text);
}

.notice.warn {
  background: linear-gradient(180deg, rgba(78, 65, 0, 0.32), rgba(78, 65, 0, 0.24));
  border-color: #6a5a00;
}

.notice.err {
  background: linear-gradient(180deg, rgba(79, 14, 14, 0.36), rgba(79, 14, 14, 0.26));
  border-color: #5c1c1c;
}

#footerNotice:not(.show) {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

.help {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
}

.modal[aria-hidden='false'] {
  display: flex;
}

.sheet {
  width: min(720px, 90vw);
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 0 0 var(--stroke) var(--border), var(--shadow);
}

.sheet .hd {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 -1px 0 var(--border);
}

.sheet .bd {
  padding: 16px;
}

.sheet label {
  color: var(--text);
}

.sheet select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 var(--stroke) var(--border);
}


