/* ==========================================
   CSS VARIABLES — BayesMap Design System
   ========================================== */

:root {
  --ui-radius: 6px;

  --primary-yellow: #E8E792;
  --primary-violet-light: #dbdbdb;

  --bg-primary: #1C1C1E;
  --bg-secondary: rgba(28, 28, 30, 0.75);
  --bg-tertiary: rgba(39, 39, 39, 0.70);
  --bg-card: rgba(28, 28, 30, 0.70);

  --text-primary: #ebe9e9;
  --text-secondary: #e0e0e0;
  --text-muted: #7a7890;

  --border-primary: #303030;
  --border-secondary: #3E3E3F;

  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --color-error: #ef5350;

  --transition-fast: all 0.15s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-image:
    radial-gradient(ellipse 60% 50% at 10% 10%,  rgba(190, 75, 120, 0.45) 0%, transparent 100%),
    radial-gradient(ellipse 80% 70% at 65% 50%,  rgba(105, 55, 175, 0.55) 0%, transparent 100%),
    radial-gradient(ellipse 55% 60% at 95% 70%,  rgba(55,  75, 200, 0.35) 0%, transparent 100%),
    radial-gradient(ellipse 50% 40% at 40% 80%,  rgba(160, 65,  80, 0.25) 0%, transparent 100%);
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--primary-yellow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  flex-shrink: 0;
}

.site-header img {
  display: block;
}

/* ==========================================
   MAIN — centered layout
   ========================================== */

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ==========================================
   GLASS CARD
   ========================================== */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-primary);
  border-radius: var(--ui-radius);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  padding: 3rem 2.5rem;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-yellow) 8%, transparent), transparent);
  pointer-events: none;
}

/* ==========================================
   PRODUCT TITLE
   ========================================== */

.product-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-primary);
}

.product-title .product-accent {
  color: var(--primary-yellow);
}

/* ==========================================
   FORM
   ========================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.modal-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.modal-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--ui-radius);
  color: var(--text-primary);
  transition: var(--transition-fast);
  font-family: inherit;
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-yellow) 15%, transparent);
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */

.btn-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem 0.75rem;
  background: var(--primary-yellow);
  color: #1a1a22;
  border: none;
  border-radius: var(--ui-radius);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:active {
  opacity: 0.8;
}

/* ==========================================
   ERROR BANNER
   ========================================== */

.error-banner {
  background: color-mix(in srgb, var(--color-error) 10%, transparent);
  color: var(--color-error);
  border: 1px solid var(--color-error);
  border-left-width: 3px;
  border-radius: var(--ui-radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
