/* ═══════════════════════════════════════════════════════════════
   ISPOR UAE — Liquid Glass Gate  v8.0
   Solid bg · frosted card · 3D lock PNG · dual buttons
═══════════════════════════════════════════════════════════════ */

:root {
  --gate-bg:      #2690ba;   /* solid teal — edit to taste */
  --teal:         #24AADF;
  --teal-h:       #1a9bbf;
  --text-dark:    #07222d;
  --text-mid:     #1b4352;
  --white:        #ffffff;
  --glass-bg:     rgba(195, 228, 238, 0.22);
  --glass-border: rgba(255, 255, 255, 0.38);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

/* ── Page container ──────────────────────────────────────────── */
.main-container {
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport — accounts for mobile browser chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: linear-gradient(
    135deg,
    #0e5f75 0%,
    #1f8fb0 40%,
    #24aadf 70%,
    #6fd3f5 100%
  );
}

/* ── Logo + card stack ───────────────────────────────────────── */
.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 580px;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.25));
}

/* ── Glass card ──────────────────────────────────────────────── */
.glass-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 48px 40px 44px;
  border-radius: 26px;
  text-align: center;

  background: linear-gradient(
    145deg,
    rgba(8, 44, 62, 0.52) 0%,
    rgba(10, 52, 72, 0.46) 50%,
    rgba(6, 38, 55, 0.42) 100%
  );
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);

  border: 1px solid var(--glass-border);
  box-shadow:
    0 2px 0 rgba(255,255,255,.28) inset,
    0 -1px 0 rgba(255,255,255,.08) inset,
    1px 0 0 rgba(255,255,255,.14) inset,
    0 32px 64px rgba(0,0,0,.35),
    0 8px 24px rgba(0,120,160,.18);

  animation: gate-up .6s cubic-bezier(.34,1.52,.64,1) both;
  overflow: hidden;
}

/* Top shimmer highlight */
.glass-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(
    155deg,
    rgba(255,255,255,.20) 0%,
    transparent 42%,
    rgba(255,255,255,.04) 100%
  );
  pointer-events: none;
}

/* Bottom edge glow line */
.glass-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12%; right: 12%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent,
    rgba(180,235,255,.65) 30%,
    rgba(255,255,255,.85) 50%,
    rgba(180,235,255,.65) 70%,
    transparent
  );
  pointer-events: none;
}

@keyframes gate-up {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Lock icon (PNG) ─────────────────────────────────────────── */
.icon-container {
  position: relative;
  z-index: 1;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
}

.gate-lock-img {
  width: 115px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.35))
          drop-shadow(0 2px 6px rgba(0,0,0,.2));
  animation: lock-bob 4s ease-in-out infinite;
}

@keyframes lock-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* ── Typography ──────────────────────────────────────────────── */
.glass-box h1 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: #ffffff;
  text-shadow:
    0 2px 12px rgba(0,0,0,.45),
    0 1px 3px rgba(0,0,0,.30);
  margin-bottom: 14px;
  line-height: 1.2;
}

.glass-box p {
  position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .40), 0 1px 2px rgba(0, 0, 0, .25);
    margin-bottom: 30px;
    max-width: 396px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.93;
}

/* Delegate badge */
.badge-delegate {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.55);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
  margin: 0 3px;
  vertical-align: middle;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.button-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
}

/* Primary — solid teal (Go Back) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: .1px;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);

  background: linear-gradient(135deg, #30c8e8 0%, #1a9bbf 50%, #0e84a8 100%);
  color: var(--white);
  box-shadow:
    0 6px 20px rgba(36,170,223,.45),
    0 2px 4px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 28px rgba(36,170,223,.55),
    0 4px 8px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:active { transform: translateY(0) scale(.98); }

/* Warning variant (override session) */
.btn-primary.btn-warn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(245,158,11,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary.btn-warn:hover {
  box-shadow: 0 10px 28px rgba(245,158,11,.5), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Secondary — frosted glass (Go Back) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: .1px;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);

  background: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.48);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 4px 16px rgba(0,0,0,.1);
}
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 24px rgba(0,0,0,.14);
}
.btn-secondary:active { transform: translateY(0) scale(.98); }

/* Solo button (single action, no flex stretch) */
.button-group--solo {
  justify-content: center;
}
.button-group--solo .btn-primary,
.button-group--solo .btn-secondary {
  flex: 0 0 auto;
  min-width: 180px;
}

/* Override-msg sub-text */
.gate-override-msg {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.70);
  text-align: center;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .main-container {
    padding: 20px 12px;
    align-items: center;
  }
  .glass-box {
    padding: 32px 18px 34px;
    border-radius: 20px;
    width: 100%;
  }
  .glass-box h1  { font-size: 22px; }
  .glass-box p   { font-size: 14px; margin-bottom: 26px; }
  .gate-lock-img { width: 90px; height: 120px; }
  .logo          { height: 40px; }

  /* Dual-button rows: stack vertically, stretch full width */
  .button-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .button-group .btn-primary,
  .button-group .btn-secondary {
    flex: none;
    width: 100%;
  }

  /* Solo button: column + center so max-width actually centers it */
  .button-group--solo {
    flex-direction: column;
    align-items: center;
  }
  .button-group--solo .btn-primary,
  .button-group--solo .btn-secondary {
    width: 100%;
    max-width: 260px;
    flex: none;
  }
}

/* ── Very small screens (360px and below) ────────────────────── */
@media (max-width: 360px) {
  .glass-box { padding: 26px 14px 28px; }
  .glass-box h1 { font-size: 20px; }
  .btn-primary, .btn-secondary { font-size: 14px; padding: 13px 18px; }
  .button-group--solo .btn-primary,
  .button-group--solo .btn-secondary { max-width: 220px; }
}