/* Standalone stylesheet for the edge-rendered login page.
   Copied from src/styles/global.css gate rules plus the minimum tokens.
   Keep visually in sync with the main stylesheet if the gate look changes. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #FAF7F2;
  --color-bg-card: #FFFFFF;
  --color-text: #2D2926;
  --color-text-muted: #6B6560;
  --color-lake: #3B7A8E;
  --color-lake-dark: #2A5A6A;
  --color-orange: #E2772D;
  --color-border: #E5DDD3;

  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-2xl: 1.5rem;
  --text-4xl: 2.25rem;

  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --radius-md: 0.5rem;

  --transition: 200ms ease;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.gate-card {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.gate-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

.gate-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.gate-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.gate-input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-bg-card);
  color: var(--color-text);
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: var(--space-md);
}

.gate-input:focus {
  border-color: var(--color-lake);
}

.gate-input.error {
  border-color: var(--color-orange);
  animation: shake 0.4s ease;
}

.gate-button {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-lake);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.gate-button:hover {
  background: var(--color-lake-dark);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
