@import "https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700&display=swap";

/* src/styles/theme.css */
:root {
  --color-bg: #141418;
  --color-bg-mid: #1b1b1c;
  --color-brand: #143e64;
  --color-accent: #39c2d5;
  --color-text: #fafaf9;
  --color-text-muted: #9292a8;
  --color-border: #3a3a47;
  --color-danger: #f87171;
  --color-success: #4ade80;
  --font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
}

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

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

#root {
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.page {
  position: fixed;
  overflow: auto;
  display: flex;
  color: var(--color-text);
  background: radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--color-brand) 55%, transparent), transparent 70%), var(--color-bg);
  justify-content: center;
  align-items:  center;
  padding: 2rem 1.25rem;
  inset: 0;
}

.page--verify {
  background: var(--color-bg);
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
}

.top-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  padding: 1.15rem 1.25rem;
}

.top-nav .logo--vertical {
  width: min(5.75rem, 28vw);
}

.stack {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items:  center;
  gap: 1.25rem;
  width: 100%;
  max-width: 22rem;
}

.logo {
  display: block;
  width: min(14rem, 100%);
  height: auto;
}

.logo--vertical {
  width: min(7.5rem, 42vw);
}

.stack--verify {
  flex: 1;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.verify-body {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items:  center;
  gap: .75rem;
  width: 100%;
}

.verify-body .actions {
  margin-top: .75rem;
}

.verify-body .footer {
  margin-top: .25rem;
}

.page--verify .footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
  font-weight: 400;
}

.page--verify .footer a:hover {
  color: var(--color-text);
}

.status-icon {
  display: inline-flex;
  border: 1.5px solid;
  border-radius: 999px;
  justify-content: center;
  align-items:  center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: .25rem;
}

.status-icon--success {
  color: #4ade80;
}

.status-icon--warning {
  color: #fbbf24;
}

.email-inline {
  color: var(--color-text-muted);
  word-break: break-all;
  font-weight: 600;
}

.title {
  letter-spacing: .02em;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.link-button {
  display: inline;
  font: inherit;
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.link-button:hover:not(:disabled) {
  text-decoration: underline;
}

.link-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.copy {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
}

.status {
  color: var(--color-text);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.status--success {
  color: var(--color-success);
}

.alert {
  color: var(--color-danger);
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  width: 100%;
  margin-top: .25rem;
}

.btn {
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: .5rem;
  justify-content: center;
  align-items:  center;
  width: 100%;
  min-height: 2.75rem;
  padding: .7rem 1.25rem;
  transition: background .15s, opacity .15s;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
}

.btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 85%, white);
  text-decoration: none;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: none;
}

.btn--ghost:hover:not(:disabled) {
  background: var(--color-bg-mid);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}

.field {
  display: flex;
  text-align: left;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-direction: column;
  gap: .4rem;
  width: 100%;
  font-size: .8rem;
  font-weight: 600;
}

.input {
  border: 1px solid var(--color-border);
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
  background: var(--color-bg-mid);
  outline: none;
  border-radius: .5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .65rem .85rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.input--error {
  border-color: var(--color-danger);
}

.input--error:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-danger) 35%, transparent);
}

.field-error {
  text-align: left;
  color: var(--color-danger);
  width: 100%;
  margin: -.35rem 0 0;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}

.email-display {
  border: 1px solid var(--color-border);
  word-break: break-all;
  color: var(--color-text);
  background: var(--color-bg-mid);
  border-radius: .5rem;
  width: 100%;
  margin: 0;
  padding: .75rem .85rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}

.footer {
  color: var(--color-text-muted);
  margin: .5rem 0 0;
  font-size: .875rem;
}

.message {
  color: var(--color-accent);
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .85rem;
  width: 100%;
}

.checkbox {
  display: flex;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  align-items:  flex-start;
  gap: .55rem;
  width: 100%;
  margin: 0;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.45;
}

.checkbox input {
  margin-top: .2rem;
}
