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

:root {
  --bg: #060608;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --fg: #e2e2e4;
  --fg-dim: rgba(200, 200, 220, 0.60);
  --ac: #22d3ee; /* Cyber Cyan */
  --ac-purple: #a78bfa; /* Cyber Purple */
  --ac-gr: linear-gradient(135deg, #22d3ee, #60a5fa, #facc15); /* Tricolor Gradient */
  --bd: 1px solid rgba(255, 255, 255, 0.08);
  --bd-hot: rgba(34, 211, 238, 0.35);
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-hot: rgba(96, 165, 250, 0.42);
  --cyan: #22d3ee;
  --green: #4ade80;
  --gold: #facc15;
  --rose: #fb7185;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060608;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  border: 2px solid #060608;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.3);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Cohesive Space & Cyber Background Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(167, 139, 250, 0.08) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Common Shell Wrapper */
.enroll-shell {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Shared Premium Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 10, 12, 0.5);
  border: var(--bd);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 32px;
  gap: 12px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.brand span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: var(--bd);
  background: rgba(255, 255, 255, 0.05);
}

.top-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: var(--bd);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-dim);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.top-links a:hover {
  color: #fff;
  border-color: var(--bd-hot);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* Containers */
.container {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

/* Glassmorphism Cards & Panels */
.card, .glass-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-card);
  border: var(--bd);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 44px);
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover, .glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.5);
}

/* Premium Typography */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: var(--ac-gr);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.2rem;
  color: var(--fg-dim);
  font-size: 0.96rem;
  line-height: 1.6;
}

strong {
  color: #fff;
  font-weight: 600;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--fg-dim);
}

li {
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
}

a {
  color: var(--ac);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s, opacity 0.15s;
}

a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(96, 165, 250, 0.92), rgba(250, 204, 21, 0.82));
  color: #080f14;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.15);
  transition: transform 0.1s, filter 0.15s, box-shadow 0.15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.25);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Inputs & Form Fields */
.field-label {
  display: block;
  width: 100%;
  color: var(--fg-dim);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
  text-align: left;
}

input[type=email], input[type=text], input[type=password], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 1.2rem;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--ac);
  margin-bottom: 1rem;
  width: fit-content;
}

/* Messaging alerts */
#msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5em;
  font-weight: 600;
}

.ok {
  color: var(--green);
}

.err {
  color: var(--rose);
}

/* Shared Footer styling */
.footer {
  margin-top: auto;
  padding: 40px 16px;
  border-top: var(--bd);
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-align: center;
  z-index: 1;
}

.footer a {
  margin: 0 4px;
  color: var(--fg-dim);
  transition: color 0.15s;
}

.footer a:hover {
  color: #fff;
  text-decoration: none;
}
