*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #1e1e2e;
  --surface: #181825;
  --border:  #313244;
  --muted:   #6c7086;
  --text:    #cdd6f4;
  --green:   #a6e3a1;
  --red:     #f38ba8;
  --mauve:   #cba6f7;
  --blue:    #89b4fa;
}

html {
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Consolas, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 52px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

h1 {
  font-size: 26px;
  font-weight: bold;
  color: var(--mauve);
  letter-spacing: 0.06em;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--mauve); }

button {
  margin-top: 10px;
  padding: 11px;
  background: var(--mauve);
  color: var(--surface);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
button:hover { opacity: 0.85; }

.form-error {
  font-size: 13px;
  color: var(--red);
  text-align: center;
  padding: 2px 0;
}
.form-notice {
  font-size: 13px;
  color: var(--green);
  text-align: center;
  padding: 2px 0;
}
.hidden { display: none; }

#reg-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  cursor: pointer;
}
#reg-terms {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--mauve);
}
#reg-terms-label a {
  color: var(--mauve);
  text-decoration: none;
}
#reg-terms-label a:hover { text-decoration: underline; }

.switch-link {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.switch-link a {
  color: var(--mauve);
  text-decoration: none;
}
.switch-link a:hover { text-decoration: underline; }

.optional-hint {
  color: var(--muted);
  font-weight: normal;
  font-size: 12px;
}

.verify-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.verify-hint strong { color: var(--text); }

#verify-code {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 20px;
}
