/* ═══════════════════════════════════════════════════════════════════════════
   LOYOLA COLLEGE — STUDENT PORTAL  |  Premium Login Experience 2026
   ✦ Water-wave canvas interaction on hero panel
   ✦ White glassmorphism login panel with gold accents
   ✦ Diagonal light-shaft animation (signature element)
   Designer note: Touch/click anywhere on the hero triggers a ripple wave
   emanating from the contact point — evoking the tranquility of water
   meeting morning light through a chapel window.
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {

  --loyola-navy:       #295FA8;
  --loyola-navy-deep:  #234F8C;
  --loyola-navy-mid:   #3B6FB6;

  --loyola-sky:        #4C7FC3;
  --loyola-sky-light:  #6B95CF;

  --loyola-gold:       #F5B800;
  --loyola-gold-light: #FFD54F;
  --loyola-gold-dark:  #C89400;

  /* Semantic */
  --color-success:      #22C55E;
  --color-warning:      #F59E0B;
  --color-danger:       #EF4444;
  --color-danger-light: #FEF2F2;

  /* Surface */
  --bg:                 #F8FAFC;
  --surface:            #FFFFFF;
  --surface-elevated:   #FFFFFF;
  --overlay-glass:      rgba(255, 255, 255, 0.10);
  --overlay-glass-mid:  rgba(255, 255, 255, 0.34);
  --overlay-glass-high: rgba(255, 255, 255, 0.22);

  /* Typography */
  --text-primary:       #0F172A;
  --text-secondary:     #64748B;
  --text-tertiary:      #94A3B8;
  --text-on-dark:       rgba(255, 255, 255, 0.95);
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);

  /* Border */
  --border:             #E2E8F0;
  --border-light:       #F1F5F9;
  --border-focus:       #1E88E5;
  --border-glass:       rgba(255, 255, 255, 0.20);

  /* Shadow */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.16), 0 6px 20px rgba(0,0,0,.08);
  --shadow-xl:   0 32px 80px rgba(0,0,0,.22), 0 12px 32px rgba(0,0,0,.12);
  --shadow-gold: 0 8px 32px rgba(245, 184, 0, 0.40);
  --shadow-navy: 0 8px 32px rgba(0, 43, 92, 0.45);

  /* Spacing scale */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px;

  /* Radius */
  --r-sm:  8px;  --r-md: 14px;  --r-lg: 20px;
  --r-xl:  28px; --r-full: 9999px;

  /* Typography scale */
  --fs-caption: 12px;  --fs-body:   14px;
  --fs-section: 18px;  --fs-card:   24px;
  --fs-page:    36px;  --fs-hero:   52px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:    150ms;  --t-mid:  280ms;  --t-slow: 480ms;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}

img  { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SHELL — two-column split
═══════════════════════════════════════════════════════════════════════════ */
.portal-page {
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 100svh;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WATER WAVE CANVAS — sits directly inside .hero-panel
   The JS ripple engine writes to this canvas on every pointer event.
═══════════════════════════════════════════════════════════════════════════ */
#wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;          /* above photo/gradient, below text content */
  width: 100%;
  height: 100%;
  pointer-events: none; /* events are captured on .hero-panel itself */
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT — HERO PANEL
═══════════════════════════════════════════════════════════════════════════ */
.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-16) var(--sp-12);
  background: var(--loyola-navy-deep);
  cursor: crosshair; /* visual cue that interaction is possible */
}

/* ── Hero image (college photo) ── */
.header-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header-image img,
.college-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
  will-change: transform;
}

.hero-panel:hover .header-image img,
.hero-panel:hover .college-banner {
  transform: scale(1.00);
}

/* Fallback gradient when no image is supplied */
.hero-banner {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    #001A3A 0%,
    #002B5C 30%,
    #003D7A 60%,
    #1E4A8C 100%
  );
  z-index: 0;
}

/* Academic pattern overlay */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(30,136,229,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,184,0,.05) 0%, transparent 45%),
    radial-gradient(circle at 55% 55%, rgba(0,61,122,.12) 0%, transparent 55%);
}
.hero-slider,
.header-image,
.college-banner,
.hero-slide,
.header-image img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;

    pointer-events: none;
}
.brand-section {
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.05) 40%,
      transparent 100%
    );
}

/* ── Signature: diagonal light shafts ── */
.hero-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 160%;
  height: 140%;
  background: repeating-linear-gradient(
    108deg,
    transparent 0px,
    transparent 120px,
    rgba(245, 184, 0, 0.032) 120px,
    rgba(245, 184, 0, 0.032) 160px,
    transparent 160px,
    transparent 300px,
    rgba(255, 255, 255, 0.018) 300px,
    rgba(255, 255, 255, 0.018) 340px
  );
  z-index: 3;
  animation: lightShafts 14s linear infinite;
  pointer-events: none;
}

@keyframes lightShafts {
  0%   { transform: translateX(0)   translateY(0); }
  50%  { transform: translateX(-3%) translateY(-1.5%); }
  100% { transform: translateX(0)   translateY(0); }
}

/* ── Floating orbs ── */
.orb {
  position: absolute;
  border-radius: var(--r-full);
  pointer-events: none;
  z-index: 3;
}

.orb--1 {
  width: 380px; height: 380px;
  top: -80px; right: -120px;
  background: radial-gradient(circle, rgba(30,136,229,.20) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
}

.orb--2 {
  width: 280px; height: 280px;
  bottom: 180px; left: -60px;
  background: radial-gradient(circle, rgba(245,184,0,.14) 0%, transparent 70%);
  animation: orbFloat 13s ease-in-out infinite reverse;
}

.orb--3 {
  width: 200px; height: 200px;
  top: 40%; right: 8%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  animation: orbFloat 9s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

/* ── Decorative geometry ── */
.geo-ring {
  position: absolute;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
  z-index: 3;
  animation: ringPulse 6s ease-in-out infinite;
}

.geo-ring--1 { width: 220px; height: 220px; top: 12%; left: 60%; }
.geo-ring--2 { width: 140px; height: 140px; top: 15%; left: 64%; border-color: rgba(245,184,0,.12); animation-delay: -2s; }
.geo-ring--3 { width: 320px; height: 320px; bottom: 25%; right: -60px; animation-delay: -4s; }

@keyframes ringPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.05); }
}

/* ── Hero content (bottom-left) ── */
.hero-content {
  position: relative;
  z-index: 10; /* always above wave canvas */
  animation: fadeSlideUp var(--t-slow) var(--ease-out) 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(245, 184, 0, 0.18);
  border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: var(--r-full);
  padding: 6px var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero-badge__dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--loyola-gold);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.75); }
}

.hero-badge__text {
  font-size: 11px;
  font-weight: 600;
  color: var(--loyola-gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--loyola-gold);
  margin-bottom: var(--sp-3);
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 3.6vw, var(--fs-hero));
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.hero-title em {
  font-style: normal;
  color: var(--loyola-gold);
  display: block;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: var(--sp-8);
}

/* ── Hero divider ── */
.hero-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero-divider__line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--loyola-gold), transparent);
  border-radius: var(--r-full);
}

.hero-divider__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(245,184,0,.18);
  border: 1px solid rgba(245,184,0,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ── Stat chips on hero ── */
.hero-stats {
  position: absolute;
  top: var(--sp-12);
  right: var(--sp-8);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  animation: fadeSlideRight var(--t-slow) var(--ease-out) 0.6s both;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--overlay-glass-mid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
}

.stat-chip__icon  { font-size: 18px; line-height: 1; }
.stat-chip__value {
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--loyola-gold);
  line-height: 1;
}
.stat-chip__label {
  font-size: var(--fs-caption);
  color: var(--text-on-dark-muted);
  font-weight: 400;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT — LOGIN PANEL  (NOW WHITE / PREMIUM)
   ✦ Pure white background
   ✦ Gold accent stripe on left edge
   ✦ Subtle noise-grain texture via SVG data-URI for depth
   ✦ Refined shadow + glassy card surface
═══════════════════════════════════════════════════════════════════════════ */
.login-panel {
    background:
        radial-gradient(circle at top right,
            rgba(255,255,255,0.25),
            transparent 40%),
        linear-gradient(
            135deg,
            #FFE082 0%,
            #F5B800 45%,
            #D4A017 100%
        );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  overflow: hidden;

  /* Crisp left-edge shadow that separates panel from hero */
  box-shadow: -24px 0 64px rgba(35, 79, 140, 0.18);
}
.login-panel::before {
    content: "";
    position: absolute;
    left: -120px;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.08) 20%,
        rgba(245,184,0,0.15) 45%,
        rgba(245,184,0,0.35) 70%,
        rgba(245,184,0,0.6) 100%
    );

    filter: blur(20px);
}

/* ── Gold accent border on left edge ── */
.login-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--loyola-gold-light) 0%,
    var(--loyola-gold)       40%,
    var(--loyola-gold-dark)  80%,
    transparent              100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Subtle warm-light radial wash ── */
.login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(245,184,0,.06)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(41,95,168,.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Login Card ── */
.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  animation: fadeSlideUp var(--t-slow) var(--ease-out) 0.1s both;
}

/* ── Card Header (logo + title) ── */
.card-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--loyola-navy-deep) 0%, var(--loyola-sky) 100%);
  box-shadow:
    var(--shadow-navy),
    0 0 0 5px rgba(41,95,168,.12),
    0 0 0 10px rgba(41,95,168,.05);
  margin-bottom: var(--sp-5);
  font-size: 32px;
  line-height: 1;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: var(--fs-card);
  font-weight: 700;
  color: var(--text-primary);     /* dark text on white panel */
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}

.card-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  font-weight: 400;
}

.card-subtitle strong {
  color: var(--loyola-navy);
  font-weight: 600;
}

/* ── The premium card surface ── */
.login-card {
  background: #FFFFFF;
  border: 1px solid #E8EEF7;
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px rgba(41,95,168,.04) inset,
    0 2px 4px rgba(41,95,168,.04),
    0 8px 24px rgba(41,95,168,.08),
    0 24px 56px rgba(41,95,168,.10);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}

/* ── Top gold shimmer line ── */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--loyola-gold-light) 30%,
    var(--loyola-gold)       50%,
    var(--loyola-gold-light) 70%,
    transparent
  );
  border-radius: 0 0 var(--r-full) var(--r-full);
}

/* ── Session active notice ── */
.session-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(34, 197, 94, .07);
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-caption);
  color: #16A34A;
}

.session-notice__dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--color-success);
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: var(--sp-5); }

/* ── Field group ── */
.field-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field-label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);     /* dark label on white */
  letter-spacing: .01em;
  transition: color var(--t-fast);
}

.field-group:focus-within .field-label { color: var(--loyola-navy); }

/* ── Input wrapper (icon + input) ── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-tertiary);
  font-size: 16px;
  pointer-events: none;
  transition: color var(--t-fast);
  z-index: 1;
  line-height: 1;
}

.field-group:focus-within .input-icon { color: var(--loyola-navy); }

/* ── Textbox on white panel ── */
.textbox,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
  width: 100%;
  height: 52px;
  background: #F8FAFD;
  border: 1.5px solid #D8E3F2;
  border-radius: var(--r-md);
  padding: 0 var(--sp-5) 0 48px;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  color: var(--text-primary);
  transition:
    border-color var(--t-mid) var(--ease-out),
    background   var(--t-mid) var(--ease-out),
    box-shadow   var(--t-mid) var(--ease-out),
    transform    var(--t-fast) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}

.textbox::placeholder {
  color: var(--text-tertiary);
  font-size: var(--fs-body);
}

.textbox:hover {
  border-color: #B5C8E8;
  background: #FFFFFF;
}

.textbox:focus {
  border-color: var(--loyola-navy);
  background: #FFFFFF;
  box-shadow:
    0 0 0 4px rgba(41,95,168,.12),
    0 2px 8px rgba(41,95,168,.10);
  transform: translateY(-1px);
}

/* Validation states */
.textbox.is-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(34,197,94,.14);
}

.textbox.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.14);
}

/* Password with end icon */
.textbox.has-end-icon { padding-right: 48px; }

/* ── Password toggle ── */
.btn-password-toggle {
  position: absolute;
  right: 14px;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color var(--t-fast), background var(--t-fast);
  z-index: 1;
}

.btn-password-toggle:hover {
  color: var(--loyola-navy);
  background: rgba(41,95,168,.07);
}

/* ── Field helper / error ── */
.field-hint {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.field-error {
  font-size: var(--fs-caption);
  color: var(--color-danger);
  margin-top: 2px;
  display: none;
}

.field-group.has-error .field-error { display: block; }
.field-group.has-error .field-hint  { display: none; }
.field-group.has-error .textbox     { border-color: var(--color-danger); }

/* ── Captcha Section ── */
.captcha-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Captcha display chip — navy on white panel */
.captcha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 140px;
  background: linear-gradient(
    135deg,
    var(--loyola-navy-deep) 0%,
    var(--loyola-navy-mid)  50%,
    var(--loyola-sky)       100%
  );
  border: 1px solid rgba(41,95,168,.30);
  box-shadow:
    0 4px 16px rgba(41,95,168,.25),
    inset 0 1px 0 rgba(255,255,255,.20);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* Captcha noise texture */
.captcha::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: .4;
  pointer-events: none;
}

/* Captcha strikethrough lines */
.captcha::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 8px,
    rgba(245,184,0,.08) 8px,
    rgba(245,184,0,.08) 9px
  );
  pointer-events: none;
}

.captcha__text {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}

.captcha__refresh {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: #F0F4FB;
  border: 1.5px solid #D8E3F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition:
    color     var(--t-fast),
    transform var(--t-mid) var(--ease-snap),
    background var(--t-fast),
    border-color var(--t-fast);
  flex-shrink: 0;
}

.captcha__refresh:hover {
  color: var(--loyola-navy);
  background: rgba(245,184,0,.12);
  border-color: var(--loyola-gold);
  transform: rotate(180deg);
}

.captcha-input.textbox { flex: 1; }

/* ── Row: remember + forgot ── */
.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: calc(var(--sp-2) * -1);
}

/* ── Checkbox ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  user-select: none;
  transition: color var(--t-fast);
}

.checkbox-label:hover { color: var(--text-primary); }

.checkbox-input { display: none; }

.checkbox-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid #C8D7EE;
  background: #F8FAFD;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background     var(--t-fast),
    border-color   var(--t-fast),
    box-shadow     var(--t-fast);
  position: relative;
}

.checkbox-box::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px,-1px);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.checkbox-input:checked ~ .checkbox-box {
  background: var(--loyola-navy);
  border-color: var(--loyola-navy);
  box-shadow: 0 0 0 3px rgba(41,95,168,.18);
}

.checkbox-input:checked ~ .checkbox-box::after { opacity: 1; }

/* ── Forgot password link ── */
.link-forgot {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--loyola-navy);
  transition: color var(--t-fast);
}

.link-forgot:hover { color: var(--loyola-gold-dark); }

/* ── Primary login button — PREMIUM ── */
.login-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    var(--loyola-navy-deep) 0%,
    var(--loyola-navy)      50%,
    var(--loyola-sky)       100%
  );

  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  box-shadow:
    0 10px 28px rgba(35,79,140,.40),
    0 4px 10px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.18);

  transition: all 0.35s var(--ease-out);
}

/* Gold shimmer sweep on hover */
.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245,184,0,.45),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

.login-btn:hover::before { left: 150%; }

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(35,79,140,.50),
    0 8px 20px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.login-btn:active {
  transform: translateY(0px) scale(0.98);
}

/* Loading state */
.login-btn.is-loading {
  pointer-events: none;
  opacity: .75;
}

.login-btn.is-loading .btn-text { opacity: 0; }

.login-btn__spinner {
  display: none;
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,.30);
  border-top-color: white;
  border-radius: var(--r-full);
  animation: spin .8s linear infinite;
}

.login-btn.is-loading .login-btn__spinner { display: block; }

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

/* Focus ring for accessibility */
.login-btn:focus-visible {
  outline: 3px solid var(--loyola-gold);
  outline-offset: 3px;
}

/* ── Divider between sections ── */
.form-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-1) 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8EEF7;
}

.form-divider__label {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: .04em;
}

/* ── Login Table (legacy support) ── */
.login-table { width: 100%; border-collapse: collapse; }
.login-table tr { display: block; }
.login-table td { display: block; width: 100%; padding: 0; }

/* ── Footer of the card ── */
.card-footer {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-footer a {
  color: var(--loyola-navy);
  font-weight: 500;
  transition: color var(--t-fast);
}

.card-footer a:hover { color: var(--loyola-gold-dark); }

/* ── Need help row ── */
.help-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.help-row__text {
  font-size: var(--fs-caption);
  color: var(--text-tertiary);
}

.help-row__link {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--loyola-navy);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}

.help-row__link:hover { color: var(--loyola-gold-dark); }

/* ── Forgot password (legacy class) ── */
.forgot-password-row { text-align: right; }

.forgot-password-link {
  color: var(--loyola-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password-link:hover {
  color: var(--loyola-gold-dark);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER BAR
═══════════════════════════════════════════════════════════════════════════ */
.info-bar { display: none; }

.footer,
.site-footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  pointer-events: none;
}

.footer-left,
.footer-right {
  pointer-events: auto;
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.32);
}

.footer-right { text-align: right; }

.footer-right a {
  color: rgba(255,255,255,.45);
  transition: color var(--t-fast);
}

.footer-right a:hover { color: var(--loyola-gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: var(--sp-8);
  right: var(--sp-8);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(15,23,42,.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-xl);
  max-width: 340px;
  animation: toastIn var(--t-mid) var(--ease-snap) both;
}

.toast.toast--success { border-color: rgba(34,197,94,.30); }
.toast.toast--error   { border-color: rgba(239,68,68,.30); }

.toast__icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.toast__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 2px;
}
.toast__msg {
  font-size: var(--fs-caption);
  color: var(--text-on-dark-muted);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(.95); }
  to   { opacity: 1; transform: translateX(0)    scale(1);   }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stagger utility */
.anim-delay-1 { animation-delay:  80ms !important; }
.anim-delay-2 { animation-delay: 160ms !important; }
.anim-delay-3 { animation-delay: 240ms !important; }
.anim-delay-4 { animation-delay: 340ms !important; }
.anim-delay-5 { animation-delay: 460ms !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE SLIDER
═══════════════════════════════════════════════════════════════════════════ */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
  cursor: crosshair;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 2.5s ease-in-out,
    transform 8s ease-in-out;
  transform: scale(1.05);
  filter: brightness(0.9) contrast(1.05);
}

.hero-slide.active {
  opacity: 0.20;
  transform: scale(1);
}

/* Keep content above image */
.hero-content  { position: relative; z-index: 10; }
.brand-section { position: relative; z-index: 10; }

/* ═══════════════════════════════════════════════════════════════════════════
   WATER WAVE RIPPLE — CSS keyframes for individual ripple elements
   (Used as a CSS-only fallback; main effect is canvas-based via JS below)
═══════════════════════════════════════════════════════════════════════════ */
.ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(245,184,0,.55);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 6;
  animation: rippleExpand 1.4s var(--ease-out) forwards;
}

@keyframes rippleExpand {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: .80; }
  60%  { transform: translate(-50%, -50%) scale(1);   opacity: .40; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0;   }
}

/* Secondary ring — slightly delayed */
.ripple-ring--2 {
  animation-delay: 120ms;
  border-color: rgba(255,255,255,.25);
}

/* Tertiary ring */
.ripple-ring--3 {
  animation-delay: 260ms;
  border-color: rgba(245,184,0,.22);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--loyola-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #wave-canvas { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1100px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .portal-page { grid-template-columns: 1fr 460px; }
  .hero-title  { font-size: clamp(28px, 3.4vw, 44px); }
  .hero-stats  { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL TABLET / PORTRAIT (≤ 900px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  body { overflow: auto; }

  .portal-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100svh;
  }

  .hero-panel {
    padding: var(--sp-10) var(--sp-8) var(--sp-8);
    min-height: 280px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-logo,
  .brand-section {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .mobile-logo img,
  .brand-section img { margin: 0 auto; }

  .hero-title   { font-size: 28px; }
  .hero-tagline { display: block !important; font-size: 13px; margin-top: 8px; }
  .geo-ring     { display: none; }

  /* White panel still white on tablet */
  .login-panel {
    background: #FFFFFF;
    padding: var(--sp-8) var(--sp-5) var(--sp-12);
    align-items: stretch;
    box-shadow: 0 -8px 32px rgba(35,79,140,.12);
  }

  /* Gold accent moves to top on mobile */
  .login-panel::after {
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(
      to right,
      var(--loyola-gold-light) 0%,
      var(--loyola-gold)       50%,
      var(--loyola-gold-light) 100%
    );
  }

  .login-container { max-width: 100%; }

  .field-label { color: var(--text-primary); }
  .field-group:focus-within .field-label { color: var(--loyola-navy); }

  .hero-slide.active { opacity: 0.06 !important; }

  .mobile-logo,
  .hero-content { position: relative; z-index: 20; }

  .hero-title { font-size: 34px !important; margin-top: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  .hero-panel {
    position: relative;
    min-height: 400px !important;
    overflow: hidden;
    padding: 20px 15px !important;
  }

  .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
  }

  .hero-slide.active { opacity: 0.08; }

  .mobile-logo,
  .hero-content,
  .brand-section {
    position: relative;
    z-index: 20;
  }

  .mobile-logo img {
    width: 90px !important;
    height: auto !important;
    margin-bottom: 10px !important;
  }

  .hero-title    { font-size: 32px !important; line-height: 1.1 !important; }
  .hero-tagline  { display: block !important; font-size: 13px !important; color: rgba(255,255,255,.92); }

  .site-footer { display: none !important; }
}

.mobile-logo img {
  width: 90px !important;
  height: auto !important;
  margin-bottom: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════════════════ */

/* Glassmorphism */
.glass      { background: var(--overlay-glass);      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-glass); }
.glass-mid  { background: var(--overlay-glass-mid);  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-glass); }
.glass-high { background: var(--overlay-glass-high); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid rgba(255,255,255,.30); }

/* Elevation */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Text helpers */
.text-gold  { color: var(--loyola-gold);  }
.text-sky   { color: var(--loyola-sky);   }
.text-muted { color: var(--text-on-dark-muted); }
.text-white { color: var(--text-on-dark); }

/* Radius */
.r-sm { border-radius: var(--r-sm); }
.r-md { border-radius: var(--r-md); }
.r-lg { border-radius: var(--r-lg); }
.r-xl { border-radius: var(--r-xl); }

/* Display */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2        { gap: var(--sp-2); }
.gap-3        { gap: var(--sp-3); }
.gap-4        { gap: var(--sp-4); }

/* Width */
.w-full { width: 100%; }

/* Hidden legacy elements */
.header,
.info-bar { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   WATER WAVE ENGINE — Inline <script> to paste into your HTML
   Add this script just before </body>.
   It requires a <canvas id="wave-canvas"> inside .hero-panel.
   
   HOW IT WORKS:
   • A 2-D "height map" grid is updated every frame using the classic
     two-buffer wave propagation algorithm (Ripple Effect, Hugo Elias 1998).
   • Pointer events on .hero-panel write energy into the nearest grid cell,
     creating circular expanding ripples.
   • The height map is rendered onto the canvas as a golden/white shimmer
     that blends (mix-blend-mode: screen) over the dark hero photo.
   • On touch devices, each touch point spawns its own ripple independently.
   
   PASTE THIS INTO YOUR HTML (inside <script> tags):
═══════════════════════════════════════════════════════════════════════════ 

(function () {
  'use strict';

  const hero    = document.querySelector('.hero-panel');
  const canvas  = document.getElementById('wave-canvas');
  if (!hero || !canvas) return;

  const ctx     = canvas.getContext('2d');

  // Grid resolution — lower = faster, higher = sharper waves
  const SCALE   = 3;
  let cols, rows, buf1, buf2, imgData;
  let W, H;

  // Damping: 0 = no decay, values close to 1 = long-lived waves
  const DAMPING = 0.985;

  // ── Resize handler ────────────────────────────────────────────────────
  function resize() {
    W      = hero.offsetWidth;
    H      = hero.offsetHeight;
    canvas.width  = Math.ceil(W / SCALE);
    canvas.height = Math.ceil(H / SCALE);
    cols   = canvas.width;
    rows   = canvas.height;
    buf1   = new Float32Array(cols * rows);
    buf2   = new Float32Array(cols * rows);
    imgData = ctx.createImageData(cols, rows);
    // Pre-fill alpha channel
    for (let i = 3; i < imgData.data.length; i += 4) {
      imgData.data[i] = 255;
    }
  }

  resize();
  new ResizeObserver(resize).observe(hero);

  // ── Splash energy into a point ────────────────────────────────────────
  function splash(px, py, radius, strength) {
    const cx = Math.floor(px / SCALE);
    const cy = Math.floor(py / SCALE);
    const r  = Math.ceil(radius / SCALE);
    for (let dy = -r; dy <= r; dy++) {
      for (let dx = -r; dx <= r; dx++) {
        if (dx * dx + dy * dy <= r * r) {
          const x = cx + dx;
          const y = cy + dy;
          if (x >= 0 && x < cols && y >= 0 && y < rows) {
            buf1[y * cols + x] = strength;
          }
        }
      }
    }
  }

  // ── Pointer events ────────────────────────────────────────────────────
  function getHeroXY(e) {
    const rect = hero.getBoundingClientRect();
    return { x: e.clientX - rect.left, y: e.clientY - rect.top };
  }

  hero.addEventListener('mousemove', (e) => {
    const p = getHeroXY(e);
    splash(p.x, p.y, 4, 200);
  });

  hero.addEventListener('click', (e) => {
    const p = getHeroXY(e);
    splash(p.x, p.y, 20, 512);
  });

  hero.addEventListener('touchmove', (e) => {
    for (const t of e.touches) {
      const rect = hero.getBoundingClientRect();
      splash(t.clientX - rect.left, t.clientY - rect.top, 8, 300);
    }
  }, { passive: true });

  hero.addEventListener('touchstart', (e) => {
    for (const t of e.changedTouches) {
      const rect = hero.getBoundingClientRect();
      splash(t.clientX - rect.left, t.clientY - rect.top, 22, 512);
    }
  }, { passive: true });

  // ── Wave simulation step ──────────────────────────────────────────────
  function step() {
    for (let y = 1; y < rows - 1; y++) {
      for (let x = 1; x < cols - 1; x++) {
        const i    = y * cols + x;
        const val  = (
          buf1[i - 1] +
          buf1[i + 1] +
          buf1[i - cols] +
          buf1[i + cols]
        ) * 0.5 - buf2[i];
        buf2[i] = val * DAMPING;
      }
    }
    // Swap buffers
    const tmp = buf1;
    buf1 = buf2;
    buf2 = tmp;
  }

  // ── Render height map to canvas ───────────────────────────────────────
  // Colour: gold (245,184,0) for positive peaks,
  //         ice-blue (107,149,207) for negative troughs
  function render() {
    const data = imgData.data;
    for (let i = 0, px = 0; i < cols * rows; i++, px += 4) {
      const v = buf1[i];
      if (v > 0) {
        // Gold shimmer
        const t = Math.min(v / 256, 1);
        data[px]     = Math.round(245 * t);   // R
        data[px + 1] = Math.round(184 * t);   // G
        data[px + 2] = 0;                      // B
        data[px + 3] = Math.round(200 * t);   // A
      } else if (v < 0) {
        // Cool blue trough
        const t = Math.min(-v / 256, 1);
        data[px]     = Math.round(107 * t);
        data[px + 1] = Math.round(149 * t);
        data[px + 2] = Math.round(207 * t);
        data[px + 3] = Math.round(160 * t);
      } else {
        data[px + 3] = 0;  // fully transparent
      }
    }
    ctx.putImageData(imgData, 0, 0);
  }

  // ── Animation loop ────────────────────────────────────────────────────
  function loop() {
    step();
    render();
    requestAnimationFrame(loop);
  }

  loop();
})();

*/

/* ═══════════════════════════════════════════════════════════════════════════
   EDGE SMOOTHING PATCH — paste these rules at the BOTTOM of login.css
   They override the specific properties causing sharp cut-off edges.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Login panel: add breathing room so card never touches viewport edge ── */
