/* Synchronous first-paint styles for /login (served from /critical.css) */
:root {
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-surface: #f1f5f9;
  --color-surface-elevated: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --radius-lg: 20px;
  --shadow-card: 0 20px 50px rgb(15 23 42 / 10%);
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html,
body,
#__nuxt {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-display);
  background: var(--color-surface);
  color: var(--color-text);
}

.auth-shell {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--color-surface);
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .auth-shell {
    grid-template-columns: minmax(320px, 1.05fr) minmax(520px, 1fr);
  }
}

.auth-shell__hero {
  padding: var(--space-8);
  color: #f8fafc;
  background: linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
}

.auth-shell__hero-inner {
  max-width: 28rem;
  margin-top: 15vh;
}

.auth-shell__logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  margin-bottom: var(--space-6);
}

.auth-shell__hero h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}

.auth-shell__hero p {
  margin: 0;
  color: rgb(241 245 249 / 85%);
  line-height: 1.6;
}

.auth-shell__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: var(--space-6);
  position: relative;
}

.auth-shell__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.auth-shell__header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.auth-shell__header p {
  margin: 0 0 var(--space-6);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
  }

  .auth-shell__hero {
    min-height: auto;
    padding: var(--space-4);
  }

  .auth-shell__hero-inner {
    margin-top: 0;
    max-width: none;
  }

  .auth-shell__logo {
    max-width: 11rem;
    margin-bottom: var(--space-4);
  }

  .auth-shell__hero h2 {
    font-size: 1.25rem;
  }

  .auth-shell__hero p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .auth-shell__panel {
    min-width: 0;
    width: 100%;
    padding: var(--space-4);
    align-items: stretch;
  }

  .auth-shell__card {
    max-width: 100%;
    width: 100%;
    padding: var(--space-6) var(--space-4);
    border-radius: 12px;
    box-shadow: none;
  }

  .auth-shell__header h1 {
    font-size: 1.35rem;
  }
}
