/* ========================================
   ManagedKeys Federation Gateway
   Brand-aligned styles
   ======================================== */

:root {
  /* ===================
     PRIMARY BRAND COLORS
     (Derived from logo)
     =================== */

  /* Turquoise/Cyan - Primary brand color from shield */
  --brand-primary: #22B8CF;
  --brand-primary-light: #3BC9DB;
  --brand-primary-lighter: #66D9E8;
  --brand-primary-dark: #15AABF;
  --brand-primary-darker: #1098AD;

  /* Sky Blue - Secondary accent from shield gradient */
  --brand-secondary: #339AF0;
  --brand-secondary-light: #4DABF7;
  --brand-secondary-lighter: #74C0FC;
  --brand-secondary-dark: #228BE6;
  --brand-secondary-darker: #1C7ED6;

  /* Deep Blue - For depth and emphasis */
  --brand-deep: #1864AB;
  --brand-deep-light: #1971C2;
  --brand-deep-dark: #145591;

  /* ===================
     NEUTRAL COLORS
     =================== */

  /* Text Colors (from logo text) */
  --text-primary: #343A40;
  --text-secondary: #495057;
  --text-muted: #6C757D;
  --text-light: #868E96;
  --text-lighter: #ADB5BD;

  /* Background Colors (Light Theme) */
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-subtle: #F1F3F5;
  --bg-muted: #E9ECEF;
  --bg-border: #DEE2E6;

  /* ===================
     FUNCTIONAL COLORS
     =================== */
  --color-success: #20C997;
  --color-success-light: #38D9A9;
  --color-warning: #FCC419;
  --color-warning-light: #FFD43B;
  --color-error: #FA5252;
  --color-error-light: #FF6B6B;
  --color-info: var(--brand-primary);

  /* ===================
     GRADIENTS
     =================== */
  --gradient-brand: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  --gradient-brand-vertical: linear-gradient(180deg, var(--brand-primary-light) 0%, var(--brand-secondary) 100%);
  --gradient-subtle: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(34, 184, 207, 0.08) 0%, rgba(51, 154, 240, 0.08) 100%);

  /* ===================
     SHADOWS
     =================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.06), 0 10px 10px rgba(0, 0, 0, 0.03);
  --shadow-brand: 0 4px 14px rgba(34, 184, 207, 0.25);
  --shadow-brand-lg: 0 10px 30px rgba(34, 184, 207, 0.3);

  /* ===================
     TYPOGRAPHY
     =================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* ===================
     SPACING
     =================== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ===================
     BORDER RADIUS
     =================== */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* ===================
     TRANSITIONS
     =================== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===================
   Provider Picker Page
   =================== */

.provider-picker-container {
  max-width: 440px;
  margin: 0 auto;
  padding-top: 10vh;
  padding-left: 1rem;
  padding-right: 1rem;
}

.provider-picker-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  text-align: center;
}

.provider-picker-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.provider-picker-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.provider-picker-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.provider-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  background: white;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
}

.provider-btn:hover {
  border-color: var(--brand-primary-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.provider-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.provider-btn-default {
  border-color: var(--brand-primary);
  background: rgba(34, 184, 207, 0.04);
}

/* ===================
   Error Page
   =================== */

.error-container {
  max-width: 440px;
  margin: 0 auto;
  padding-top: 10vh;
  padding-left: 1rem;
  padding-right: 1rem;
}

.error-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--color-error);
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-primary-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

.error-back-link:hover {
  color: var(--brand-primary);
}
