@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap);
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--canvas, #030712);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
  animation: fadeOut 0.3s ease-out 1.7s forwards;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}

.splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 24px;
}

.splash-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text, #f4f8ff);
  text-align: center;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.splash-screen * {
  box-sizing: border-box;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--canvas, #030712);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #f4f4f5;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noiseFilter%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23noiseFilter%29%27 opacity=%270.03%27/%3E%3C/svg%3E");
  pointer-events: none;
}

.login-mobile-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 860px;
  background-color: var(--canvas, #030712);
  border-radius: 45px;
  border: 8px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

@media (max-width: 640px) {
  .login-mobile-frame {
    border-radius: 0;
    border: none;
    height: 100vh;
    max-width: 100%;
  }
}

/* Status Bar */
.login-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 8px;
  z-index: 20;
  color: white;
}

.login-time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.login-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.login-battery {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #22c55e;
  border-radius: 9999px;
  padding: 2px 6px;
  margin-left: 4px;
}

.login-battery-text {
  font-size: 9px;
  color: #000;
  font-weight: bold;
}

/* Main Content */
.login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 32px;
  position: relative;
  z-index: 10;
  padding-top: 48px;
}

/* Logo Section */
.login-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 64px;
  height: 64px;
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px -10px rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.login-logo-inner {
  width: 28px;
  height: 28px;
  background-color: var(--canvas, #030712);
  transform: rotate(45deg);
  border-radius: 3px;
}

.login-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: #71717a;
  font-weight: 400;
  text-align: center;
  line-height: 1.625;
}

/* Error Message */
.login-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* App / WebView: brief custom-token sign-in */
.login-bootstrap-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(22, 200, 243, 0.08);
  border: 1px solid rgba(22, 200, 243, 0.25);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 500;
}

.login-bootstrap-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(165, 243, 252, 0.25);
  border-top-color: #22d3ee;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-social-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.login-embedded-google-panel {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-embedded-google-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #a1a1aa;
  text-align: center;
}

.login-safari-open-button {
  width: 100%;
  background: #0ea5e9;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.login-safari-open-button:hover {
  background: #0284c7;
}

.login-safari-open-button:active {
  transform: scale(0.99);
}

.login-email-toggle {
  background: none;
  border: none;
  color: #22d3ee;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.login-email-toggle:hover:not(:disabled) {
  color: #67e8f9;
}

.login-email-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-email-toggle--back {
  margin-top: 4px;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 4px;
}

.login-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #71717a;
  margin-left: 4px;
}

.login-forgot-link {
  font-size: 11px;
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.2s;
}

.login-forgot-link:hover {
  color: #67e8f9;
}

.login-input-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.login-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.login-input-icon {
  color: #71717a;
  flex-shrink: 0;
  transition: color 0.2s;
}

.login-input-wrapper:focus-within .login-input-icon {
  color: #22d3ee;
}

.login-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
  color: white;
  padding: 14px 12px;
  outline: none;
  font-weight: 300;
}

.login-input::placeholder {
  color: #52525b;
}

.login-input-password {
  letter-spacing: 0.15em;
  font-family: monospace;
}

.login-eye-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.login-eye-button:hover {
  color: #71717a;
}

/* Sign In Button */
.login-signin-button {
  width: 100%;
  background-color: white;
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px -5px rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.login-signin-button:hover:not(:disabled) {
  background-color: #e4e4e7;
}

.login-signin-button:active:not(:disabled) {
  transform: scale(0.98);
}

.login-signin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Divider */
.login-divider {
  position: relative;
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background-color: #27272a;
  border: none;
}

.login-divider-text {
  background-color: var(--canvas, #030712);
  padding: 0 12px;
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Google Button */
.login-google-button {
  width: 100%;
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid #27272a;
  color: #e4e4e7;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  backdrop-filter: blur(10px);
}

.login-google-button:hover:not(:disabled) {
  background: rgba(39, 39, 42, 0.6);
}

.login-google-button:hover:not(:disabled) span {
  color: white;
}

.login-google-button:active:not(:disabled) {
  transform: scale(0.98);
}

.login-google-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-google-button svg {
  flex-shrink: 0;
}

.login-google-button span {
  transition: color 0.2s;
}

/* Passkey (email path only) */
.login-passkey-button {
  width: 100%;
  margin-top: 8px;
  background: rgba(22, 200, 243, 0.12);
  border: 1px solid rgba(22, 200, 243, 0.35);
  color: #e2f7ff;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.login-passkey-button:hover:not(:disabled) {
  background: rgba(22, 200, 243, 0.2);
}

.login-passkey-button:active:not(:disabled) {
  transform: scale(0.98);
}

.login-passkey-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-passkey-icon {
  font-size: 16px;
}

/* Footer */
.login-footer {
  padding: 0 32px 40px;
  margin-top: auto;
  text-align: center;
  z-index: 10;
}

.login-footer-text {
  font-size: 12px;
  color: #71717a;
}

.login-footer-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s;
}

.login-footer-link:hover {
  color: var(--accent, #22d3ee);
}

/* Selection styling */
.login-page ::selection {
  background-color: var(--accent, #22d3ee);
  color: var(--canvas, #030712);
}

.login-page ::-moz-selection {
  background-color: var(--accent, #22d3ee);
  color: var(--canvas, #030712);
}

/* Forgot Password */
.login-forgot-password {
  background-color: #141417;
  border: 1px solid #2b2b2f;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.login-forgot-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.login-forgot-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.5;
}

.login-forgot-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #10b981;
  margin-bottom: 16px;
}

.login-forgot-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.login-forgot-back {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  text-align: center;
}

.login-forgot-back:hover:not(:disabled) {
  color: #ffffff;
}

.login-forgot-back:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/**
 * Semantic design tokens — wellness theme (matches mobile TodayPremium).
 * Use these in new UI instead of raw hex.
 */
:root {
  /* Canvas & surfaces */
  --canvas: #030712;
  --canvas-elevated: #0b1220;
  --surface: rgba(12, 20, 38, 0.94);
  --surface-solid: #101b30;
  --surface-elevated: #101b30;
  --surface-inset: rgba(255, 255, 255, 0.06);
  --surface-overlay: rgba(3, 7, 18, 0.88);

  /* Borders */
  --border: rgba(94, 234, 212, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(94, 234, 212, 0.28);

  /* Text */
  --text: #f4f8ff;
  --text-body: #c5d4eb;
  --text-muted: #8ba3c7;
  --text-label: #9db4d8;
  --text-subtle: #71717a;

  /* Accent (cyan + teal) */
  --accent: #22d3ee;
  --accent-teal: #14b8a6;
  --accent-hover: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-muted: rgba(94, 234, 212, 0.35);

  /* Semantic */
  --success: #14b8a6;
  --success-soft: rgba(20, 184, 166, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.12);

  /* Focus ring */
  --focus-ring: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent-muted);

  /* Radius & shadow */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 12px 28px rgba(2, 6, 23, 0.55);
  --shadow-glass: 0 12px 28px rgba(2, 6, 23, 0.55);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 56px;
}

:root {
  /* Wellness navy scale — legacy zinc aliases for existing CSS */
  --zinc-950: var(--canvas);
  --zinc-900: var(--surface-solid);
  --zinc-850: #141e33;
  --zinc-800: #1a2740;
  --zinc-700: #253552;
  --zinc-600: #3d5278;
  --zinc-500: var(--text-subtle);
  --zinc-400: var(--text-muted);
  --zinc-300: var(--text-body);
  --zinc-200: var(--text);
  --emerald-500: var(--accent-teal);
}

.App {
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
  background-color: var(--canvas);
  color: var(--text);
  /* Prevent flickering */
  will-change: auto;
  backface-visibility: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-subtle);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* Prevent flickering */
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--canvas);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

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

.btn-secondary:hover {
  background-color: var(--zinc-800);
  border-color: var(--accent-muted);
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: #27ae60;
  color: white;
}

.btn-success:hover {
  background-color: #229954;
}

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

/* Input styles */
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: #3498db;
}

.textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}

.textarea:focus {
  outline: none;
  border-color: #3498db;
}

/* Card styles */
.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.modal-close:hover {
  background-color: #ecf0f1;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-draft {
  background-color: #ecf0f1;
  color: #7f8c8d;
}

.badge-published {
  background-color: #d5f4e6;
  color: #27ae60;
}

.badge-archived {
  background-color: #fadbd8;
  color: #e74c3c;
}

/* Portal card style (guide design) */
.portal-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-glass);
  transition: border-color 0.2s;
}

.portal-card:hover {
  border-color: var(--border-strong);
}







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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--canvas, #030712);
  color: var(--text-muted, #8ba3c7);
  margin: 0;
  padding: 0;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, monospace;
}


















