/* All Dental Labs — app-side CSS (signup, login, dashboard).
 * Mirrors the marketing-site design system: navy + teal, Manrope/Inter,
 * generous whitespace, subtle shadows.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A2332;
  background: #F7F9FB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0B2545;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #13B5B1; }

h1, h2, h3, h4 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  color: #0B2545;
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

/* ── Auth card (used by signup + login) ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(11, 37, 69, 0.08);
  padding: 40px;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #0B2545;
  margin-bottom: 32px;
}

.auth-card__logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0B2545 0%, #13B5B1 100%);
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card__subtitle {
  color: #5A6C7D;
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9375rem;
  color: #5A6C7D;
}

.auth-card__footer a {
  color: #13B5B1;
  font-weight: 600;
}

/* ── Form ── */
.form-row { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0B2545;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: #1A2332;
  background: #fff;
  border: 1px solid #D5DDE6;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: #13B5B1;
  box-shadow: 0 0 0 3px rgba(19, 181, 177, 0.15);
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #5A6C7D;
}

.form-flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.form-flash--error {
  background: #FFF1F1;
  color: #C53030;
  border: 1px solid rgba(197, 48, 48, 0.2);
}

.form-flash--success {
  background: rgba(19, 181, 177, 0.1);
  color: #0F8C89;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn--primary {
  background: #13B5B1;
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: #0F9B97;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 181, 177, 0.3);
}

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

.btn--block {
  width: 100%;
}

/* ── Dashboard ── */
.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.dash__sidebar {
  background: #0B2545;
  color: #fff;
  padding: 24px 16px;
}

.dash__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  color: #fff;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.dash__logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #13B5B1 100%);
}

.dash__nav { display: flex; flex-direction: column; gap: 4px; }

.dash__nav a {
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.12s ease;
}

.dash__nav a:hover,
.dash__nav a.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dash__main {
  padding: 40px 48px;
  overflow-y: auto;
}

.dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash__title {
  font-size: 1.75rem;
  margin: 0;
}

.dash__greeting {
  color: #5A6C7D;
  margin: 4px 0 0;
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-pill--pending {
  background: #FFF6E5;
  color: #B7791F;
}

.status-pill--active {
  background: rgba(19, 181, 177, 0.15);
  color: #0F8C89;
}

.status-pill--suspended {
  background: #FFF1F1;
  color: #C53030;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  padding: 24px;
}

.stat-card__label {
  font-size: 0.875rem;
  color: #5A6C7D;
  margin: 0 0 8px;
}

.stat-card__value {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0B2545;
  margin: 0;
}

.panel {
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}

.panel h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.panel p {
  color: #5A6C7D;
  margin: 0;
}

.next-step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.next-step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #F0F4F8;
  color: #1A2332;
}

.next-step-list li:last-child { border-bottom: 0; }

.next-step-list li::before {
  content: '○';
  font-size: 1.125rem;
  color: #13B5B1;
  line-height: 1.4;
  flex-shrink: 0;
}

.next-step-list li.is-done::before {
  content: '●';
}

@media (max-width: 760px) {
  .dash {
    grid-template-columns: 1fr;
  }
  .dash__sidebar {
    padding: 16px;
  }
  .dash__main { padding: 24px; }
  .dash__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }
  .dash__nav a {
    white-space: nowrap;
  }
}
