/* CannonSign — public signup page styles. Self-contained (the page is
   rendered with layout: false) so DocuSeal's daisyUI bundle never loads
   here and class names like .btn don't collide. */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #14B8A6;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;
  --success: #16A34A;
  --success-bg: #F0FDF4;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, var(--primary-light) 0%, transparent 55%),
    var(--bg);
}

.topbar {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
}
.topbar a { display: inline-flex; }
.topbar img { height: 56px; width: auto; }

.shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 2.25rem 2rem 2rem;
}

.card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}
.card .lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* segmented mode toggle (server-rendered links — no JS) */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.mode-toggle a {
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.mode-toggle a:hover { color: var(--text); }
.mode-toggle a.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* form layout */
.field { margin-bottom: 1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.field-row .field { margin-bottom: 0; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.005em;
}
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
input.code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.signin-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.signin-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.signin-link a:hover { text-decoration: underline; }

.error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.error-box ul { padding-left: 1.1rem; margin: 0; }
.error-box li { margin: 0.15rem 0; }

/* "check your email" success view */
.success-card {
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.25rem auto 1.25rem;
}
.success-card h1 { margin-bottom: 0.6rem; }
.success-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.success-card .email-pill {
  display: inline-block;
  margin: 1rem 0 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.success-card .next {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.success-card .next a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.success-card .next a:hover { text-decoration: underline; }

@media (max-width: 540px) {
  .topbar { padding: 1rem 1.25rem; }
  .topbar img { height: 48px; }
  .card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1rem; }
}
