:root {
  --navy-950: #08111b;
  --navy-900: #0d1a28;
  --navy-800: #153044;
  --blue: #2e86da;
  --teal: #1db5b0;
  --emerald: #25c88e;
  --emerald-dark: #0d8970;
  --gold: #f1c66b;
  --gold-deep: #bd8930;
  --ink: #13273f;
  --muted: #6d7d8f;
  --surface: rgba(250, 253, 255, .82);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: #fff;
  font-family: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 58px);
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 210, 192, .20), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(255, 221, 149, .18), transparent 26%),
    radial-gradient(circle at 62% 84%, rgba(126, 194, 255, .18), transparent 28%),
    linear-gradient(130deg, #0d3443 0%, #13526a 24%, #1b6f83 50%, #2b8f98 74%, #d8f0f2 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  opacity: .54;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,.95) 0 1px, transparent 1.7px),
    radial-gradient(circle at center, rgba(131,226,214,.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at center, rgba(241,198,107,.55) 0 1px, transparent 1.8px);
  background-size: 110px 110px, 170px 170px, 240px 240px;
  background-position: 20px 30px, 70px 80px, 130px 18px;
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
  animation: star-pan 18s linear infinite;
}

.login-page::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  right: -330px;
  top: -385px;
  z-index: -8;
  border-radius: 50%;
  border: 72px solid rgba(255, 255, 255, .16);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.24),
    inset 0 0 70px rgba(255,255,255,.10),
    0 0 90px rgba(255,255,255,.10);
}

.space-glow {
  position: absolute;
  z-index: -8;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .7;
}

.space-glow-one {
  width: 360px;
  height: 360px;
  left: 20%;
  bottom: -220px;
  background: rgba(122, 236, 220, .18);
  animation: glow-drift 10s ease-in-out infinite alternate;
}

.space-glow-two {
  width: 330px;
  height: 330px;
  right: 27%;
  top: 15%;
  background: rgba(255, 235, 179, .16);
  animation: glow-drift 13s ease-in-out -3s infinite alternate-reverse;
}

.grid-horizon {
  position: absolute;
  z-index: -7;
  left: -15%;
  right: -15%;
  bottom: -250px;
  height: 520px;
  opacity: .15;
  transform: perspective(470px) rotateX(67deg);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(181,242,255,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,242,255,.32) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.wave {
  position: absolute;
  z-index: -6;
  left: -8%;
  width: 74%;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-7deg);
  border-top: 1px solid rgba(235, 252, 255, .42);
  box-shadow:
    0 -8px 24px rgba(18,145,176,.10),
    inset 0 22px 38px rgba(31,179,151,.08);
  animation: wave-drift 9s ease-in-out infinite alternate;
}

.wave-one { bottom: 16%; }
.wave-two {
  bottom: 11%;
  left: 5%;
  width: 62%;
  opacity: .65;
  animation-delay: -4s;
}

.starfield {
  position: absolute;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: .8;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: transparent;
}

.starfield-one::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(116, 244, 218, .8) 0 1.3px, transparent 2px),
    radial-gradient(circle, rgba(241, 198, 107, .75) 0 1.1px, transparent 1.8px);
  background-size: 148px 148px, 188px 188px, 256px 256px;
  background-position: 20px 18px, 85px 62px, 110px 26px;
  animation: twinkle-stars 7.8s ease-in-out infinite;
}

.starfield-two::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(122, 205, 255, .58) 0 1px, transparent 1.7px);
  background-size: 126px 126px, 214px 214px;
  background-position: 60px 24px, 20px 110px;
  opacity: .52;
  animation: twinkle-stars 10s ease-in-out -2s infinite alternate;
}

.ring,
.swirl,
.glint {
  position: absolute;
  pointer-events: none;
}

.ring {
  z-index: -6;
  border-radius: 50%;
  border: 1px solid rgba(112, 238, 221, .22);
  box-shadow: inset 0 0 24px rgba(112, 238, 221, .05), 0 0 24px rgba(112, 238, 221, .08);
}

.ring-one {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -210px;
  border-top-color: rgba(241, 198, 107, .30);
  border-right-color: rgba(241, 198, 107, .08);
  animation: rotate-ring 22s linear infinite;
}

.ring-two {
  width: 390px;
  height: 390px;
  right: -120px;
  top: 80px;
  border-left-color: rgba(82, 214, 204, .32);
  border-bottom-color: rgba(82, 214, 204, .08);
  animation: rotate-ring-reverse 18s linear infinite;
}

.swirl {
  z-index: -5;
  border-radius: 50%;
  border-top: 1px solid rgba(84, 218, 209, .28);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  filter: drop-shadow(0 0 14px rgba(84, 218, 209, .16));
}

.swirl-one {
  width: 400px;
  height: 180px;
  left: 4%;
  top: 16%;
  transform: rotate(-18deg);
  animation: swirl-drift 11s ease-in-out infinite alternate;
}

.swirl-two {
  width: 340px;
  height: 140px;
  right: 9%;
  bottom: 18%;
  transform: rotate(11deg);
  border-top-color: rgba(241, 198, 107, .25);
  animation: swirl-drift 13s ease-in-out -3s infinite alternate-reverse;
}

.glint {
  z-index: -5;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), transparent);
  opacity: .72;
  box-shadow: 0 0 18px rgba(255,255,255,.22);
}

.glint-one {
  left: 12%;
  top: 31%;
  transform: rotate(-18deg);
  animation: glint-move 9s ease-in-out infinite;
}

.glint-two {
  right: 11%;
  top: 24%;
  width: 170px;
  transform: rotate(12deg);
  animation: glint-move 7.8s ease-in-out -2s infinite;
}

.orb {
  position: absolute;
  z-index: -3;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 22px 38px rgba(0,0,0,.25);
  animation: float-orb 6.6s ease-in-out infinite;
}

.orb::after {
  content: "";
  position: absolute;
  inset: 10% 18% 56% 18%;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  filter: blur(4px);
}

.orb-blue {
  background: radial-gradient(circle at 30% 24%, #70c8ff 0 5%, #1378d5 27%, #064a98 59%, #012451 100%);
}

.orb-emerald {
  background: radial-gradient(circle at 30% 24%, #9affdd 0 5%, #1fd59b 26%, #07946e 58%, #03473c 100%);
}

.orb-gold {
  background: radial-gradient(circle at 30% 24%, #fff6c7 0 5%, #f7cf65 26%, #d69b30 58%, #865714 100%);
}

.orb-a { width: 58px; height: 58px; left: 4.6%; top: 11%; }
.orb-b { width: 92px; height: 92px; left: -27px; top: 35%; animation-delay: -2s; }
.orb-c { width: 34px; height: 34px; left: 47%; top: 12%; animation-delay: -3.7s; }
.orb-d { width: 63px; height: 63px; left: 48%; bottom: 5%; animation-delay: -1.1s; }

.content-shell {
  width: min(1380px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(450px, 560px);
  gap: clamp(54px, 6vw, 105px);
  align-items: center;
}

.brand-panel {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 12px 0;
}

.brand-top { width: 100%; position: relative; z-index: 1; }

.amwal-brand {
  display: block;
  width: min(450px, 78%);
  height: auto;
  margin: 0 auto -6px;
  filter:
    drop-shadow(0 18px 25px rgba(0,0,0,.26))
    drop-shadow(0 0 24px rgba(255,255,255,.10));
}

.brand-copy h1,
.brand-copy h2,
.brand-copy p { margin: 0; }

.brand-copy h1 {
  font-size: clamp(1.26rem, 1.55vw, 1.6rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .005em;
  color: rgba(255,255,255,.97);
}

.brand-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.12rem, 1.45vw, 1.48rem);
  line-height: 1.25;
  font-weight: 700;
  color: #48d1b2;
  text-shadow: 0 0 20px rgba(21,197,155,.20);
}

.brand-copy p {
  margin-top: 12px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 10px rgba(10,39,52,.28);
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.finance-visual {
  --scene-x: 0px;
  --scene-y: 0px;
  position: relative;
  width: min(510px, 90%);
  height: 282px;
  margin: 30px auto 8px;
  perspective: 900px;
  transform: translate3d(var(--scene-x), var(--scene-y), 0);
  transition: transform .28s ease-out;
}

.visual-glow {
  position: absolute;
  width: 72%;
  height: 34%;
  left: 14%;
  bottom: 16px;
  border-radius: 50%;
  background: rgba(19,148,223,.28);
  filter: blur(31px);
}

.visual-stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 318px;
  height: 156px;
  transform-style: preserve-3d;
  transform: translateX(-50%) rotateX(57deg) rotateZ(-5deg);
  animation: stage-float 5.4s ease-in-out infinite;
  transform-origin: center center;
}

.stage-top {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(24,75,129,.98), rgba(6,35,73,.99));
  border: 1px solid rgba(91,176,255,.40);
  box-shadow:
    0 38px 55px rgba(0,0,0,.40),
    inset 0 2px 0 rgba(255,255,255,.12),
    inset -10px -14px 22px rgba(0,0,0,.20);
}

.stage-edge {
  position: absolute;
  height: 25px;
  bottom: -17px;
  background: linear-gradient(to bottom, #0a3769, #061d3b);
  box-shadow: 0 16px 24px rgba(0,0,0,.32);
}

.stage-edge-left { left: 15px; right: 18px; transform: skewX(-34deg); }
.stage-edge-right { right: -9px; width: 34px; transform: skewY(-38deg); opacity: .78; }

.portal-frame {
  position: absolute;
  left: 87px;
  bottom: 55px;
  width: 116px;
  height: 145px;
  transform: rotateX(-57deg) rotateZ(5deg) translateZ(50px);
  transform-origin: bottom center;
  clip-path: polygon(50% 0, 91% 32%, 91% 100%, 9% 100%, 9% 32%);
  background: linear-gradient(135deg, #f3ca64, #b77a22 56%, #ffe397);
  filter: drop-shadow(0 15px 18px rgba(0,0,0,.33));
}

.portal-inner {
  position: absolute;
  inset: 13px;
  clip-path: inherit;
  background: linear-gradient(165deg, #0d5966, #073a56 50%, #042943);
  box-shadow: inset 0 0 18px rgba(44,220,181,.24);
}

.bar-set {
  position: absolute;
  left: 36px;
  bottom: 58px;
  width: 104px;
  height: 130px;
  transform: rotateX(-57deg) rotateZ(5deg) translateZ(56px);
  transform-origin: bottom;
}

.bar {
  position: absolute;
  bottom: 0;
  width: 22px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #0aa77f, #27d9a4 58%, #0b8d70);
  box-shadow: inset 4px 0 rgba(255,255,255,.10), 0 10px 18px rgba(0,0,0,.28);
}

.bar-1 { left: 0; height: 36px; }
.bar-2 { left: 27px; height: 62px; }
.bar-3 { left: 54px; height: 88px; }
.bar-4 { left: 81px; height: 114px; }

.chart-card {
  position: absolute;
  right: 7px;
  bottom: 72px;
  width: 165px;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(133,214,255,.42);
  border-radius: 13px;
  transform: rotateX(-57deg) rotateZ(5deg) translateZ(68px);
  transform-origin: bottom;
  background: linear-gradient(145deg, rgba(10,75,111,.74), rgba(5,37,75,.64));
  box-shadow: 0 14px 26px rgba(0,0,0,.28), inset 0 0 25px rgba(47,171,255,.08);
  backdrop-filter: blur(8px);
}

.chart-card svg { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
.chart-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(94,190,245,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,190,245,.45) 1px, transparent 1px);
  background-size: 23px 23px;
}

.coin {
  position: absolute;
  border-radius: 50%;
  transform: rotateX(-57deg) rotateZ(5deg) translateZ(90px);
  background: radial-gradient(circle at 32% 26%, #fff1a9 0 4%, #f5c95c 27%, #cb8c27 66%, #7d4b0e 100%);
  border: 3px solid #f8dc83;
  box-shadow: 0 13px 20px rgba(0,0,0,.34), inset 0 0 0 5px rgba(139,85,12,.22);
}

.coin-main { width: 58px; height: 58px; left: 122px; bottom: 30px; }
.coin-main span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7d4b0e;
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 1px rgba(255,255,255,.35);
}

.coin-small { width: 35px; height: 35px; left: 28px; bottom: 46px; transform: rotateX(-57deg) rotateZ(5deg) translateZ(95px); }

.brand-quote {
  position: relative;
  z-index: 1;
  width: min(560px, 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  color: rgba(255,255,255,.92);
  text-align: center;
}

.quote-line { width: 74px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.brand-quote p { margin: 0; font-size: .88rem; line-height: 1.55; }

.login-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 42px clamp(34px, 4vw, 56px) 27px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.62);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(235,246,255,.73));
  box-shadow:
    0 40px 75px rgba(0,0,0,.37),
    0 0 0 1px rgba(180,220,255,.15) inset,
    0 3px 2px rgba(255,255,255,.85) inset,
    0 -2px 0 rgba(255,255,255,.32) inset,
    0 0 48px rgba(93,176,255,.15);
  backdrop-filter: blur(27px) saturate(125%);
  -webkit-backdrop-filter: blur(27px) saturate(125%);
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .22s ease-out, box-shadow .22s ease;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 25px;
  pointer-events: none;
}

.login-card::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -10px;
  height: 24px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(21,189,175,.30);
  filter: blur(19px);
}

.card-shine {
  position: absolute;
  pointer-events: none;
  top: -1px;
  left: 12%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, rgba(255,255,255,.2));
  box-shadow: 0 0 18px #fff;
}

.school-logo-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(236,244,251,.88));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 16px 27px rgba(24,70,111,.15), inset 0 1px 3px rgba(255,255,255,.90);
}

.school-logo-wrap img { width: 70px; height: 70px; object-fit: contain; }

.card-heading { text-align: center; margin-bottom: 31px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #0b8a7d;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.card-heading h2 {
  margin: 0 0 7px;
  color: #071e3e;
  font-size: clamp(2rem, 2.7vw, 2.55rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.04em;
}
.card-heading p { margin: 0; color: #5f6f83; font-size: .93rem; }

form { position: relative; z-index: 1; }
form > label {
  display: block;
  margin: 0 0 8px 2px;
  color: #0c2343;
  font-size: .86rem;
  font-weight: 700;
}

.input-group { position: relative; margin-bottom: 22px; }
.input-group input {
  width: 100%;
  height: 59px;
  border: 1px solid rgba(70,104,137,.21);
  border-radius: 13px;
  outline: none;
  padding: 0 54px;
  color: #0c2343;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.80), 0 9px 18px rgba(25,65,105,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.input-group input::placeholder { color: #91a0b2; }
.input-group input:focus {
  background: rgba(255,255,255,.93);
  border-color: rgba(9,157,145,.72);
  box-shadow: 0 0 0 4px rgba(14,176,158,.10), 0 12px 25px rgba(25,65,105,.09);
  transform: translateY(-1px);
}

.field-icon,
.password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #405066;
}
.field-icon { left: 17px; pointer-events: none; }
.field-icon svg,
.password-toggle svg,
.access-note svg,
.button-arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle {
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.password-toggle:hover,
.password-toggle:focus-visible { color: #078c7d; background: rgba(11,154,140,.07); outline: none; }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: -1px 1px 26px;
  color: #526579;
  font-size: .87rem;
}
.remember-option { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.remember-option input { width: 18px; height: 18px; margin: 0; accent-color: #0eaa93; }
.forgot-button { border: 0; padding: 5px; color: #087f79; background: transparent; cursor: pointer; }
.forgot-button:hover,
.forgot-button:focus-visible { color: #065b58; text-decoration: underline; outline: none; }

.login-button {
  position: relative;
  width: 100%;
  min-height: 61px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(100deg, #17b886 0%, #0da895 48%, #0a8f9e 100%);
  background-size: 160% 160%;
  box-shadow: 0 15px 28px rgba(8,132,117,.27), inset 0 1px 1px rgba(255,255,255,.34);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: .005em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: button-flow 5s ease-in-out infinite alternate;
}
.login-button::before {
  content: "";
  position: absolute;
  inset: -120% -50%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.34), transparent 58%);
  transform: translateX(-60%);
  animation: button-sheen 4.8s ease-in-out infinite;
}
.login-button > * { position: relative; z-index: 1; }
.button-arrow { width: 21px; height: 21px; transition: transform .18s ease; }
.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.02);
  box-shadow: 0 18px 32px rgba(8,132,117,.34), 0 0 0 4px rgba(16,185,133,.08);
}
.login-button:hover:not(:disabled) .button-arrow { transform: translateX(4px); }
.login-button:active:not(:disabled) { transform: translateY(0); }
.login-button:focus-visible { outline: 3px solid rgba(7,116,111,.25); outline-offset: 3px; }
.login-button:disabled { cursor: wait; opacity: .75; }

.status-message {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  color: #6f4a20;
  text-align: center;
  font-size: .82rem;
  line-height: 1.45;
  opacity: 0;
  transition: max-height .3s ease, margin .3s ease, opacity .3s ease;
}
.status-message.is-visible {
  max-height: 82px;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(241,184,75,.10);
  opacity: 1;
}

.access-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(58,86,113,.13);
  color: #5f7184;
}
.security-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0c8a7d;
  background: rgba(10,162,148,.08);
}
.security-icon svg { width: 21px; height: 21px; }
.access-note div { display: flex; flex-direction: column; gap: 2px; }
.access-note strong { color: #405164; font-size: .78rem; font-weight: 700; }
.access-note small { color: #8391a0; font-size: .72rem; }

.card-footer {
  margin-top: 21px;
  color: #8190a1;
  text-align: center;
  font-size: .70rem;
}

@keyframes star-pan {
  from { background-position: 20px 30px, 70px 80px, 130px 18px; }
  to { background-position: 40px 46px, 50px 66px, 150px 44px; }
}
@keyframes twinkle-stars {
  0%, 100% { opacity: .45; transform: translate3d(0, 0, 0) scale(1); }
  30% { opacity: .85; }
  55% { opacity: .55; transform: translate3d(6px, -4px, 0) scale(1.01); }
  75% { opacity: .95; }
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotate-ring-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes swirl-drift {
  from { transform: translate3d(0, 0, 0) rotate(-18deg); opacity: .38; }
  to { transform: translate3d(16px, 10px, 0) rotate(-10deg); opacity: .74; }
}
@keyframes glint-move {
  0%, 100% { opacity: .18; transform: translateX(0) rotate(-18deg); }
  50% { opacity: .72; transform: translateX(26px) rotate(-18deg); }
}

@keyframes glow-drift {
  from { transform: translate3d(-12px, -8px, 0) scale(.94); }
  to { transform: translate3d(25px, 14px, 0) scale(1.08); }
}
@keyframes wave-drift {
  from { transform: translateX(-16px) rotate(-7deg) scaleX(.98); opacity: .48; }
  to { transform: translateX(25px) rotate(-5deg) scaleX(1.04); opacity: .80; }
}
@keyframes float-orb {
  0%,100% { transform: translate3d(0,0,0) rotate(0); }
  50% { transform: translate3d(8px,-17px,0) rotate(5deg); }
}
@keyframes stage-float {
  0%,100% { margin-bottom: 0; transform: translateX(-50%) rotateX(57deg) rotateZ(-5deg) translateY(0); }
  50% { margin-bottom: 0; transform: translateX(-50%) rotateX(57deg) rotateZ(-5deg) translateY(-8px); }
}
@keyframes button-flow {
  from { background-position: 0 50%; }
  to { background-position: 100% 50%; }
}
@keyframes button-sheen {
  0%,72% { transform: translateX(-70%); }
  100% { transform: translateX(75%); }
}


/* =========================================================
   LAPTOP 14 INCI / VIEWPORT PENDEK
   Dioptimalkan untuk resolusi seperti 1366x768 dan 1280x720.
   Hanya aktif di desktop dengan tinggi layar <= 820px.
   ========================================================= */
@media (min-width: 851px) and (max-height: 820px) {
  .login-page {
    padding: 16px clamp(26px, 3vw, 44px);
  }

  .content-shell {
    width: min(1240px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(410px, 470px);
    gap: clamp(34px, 4.2vw, 62px);
  }

  .brand-panel {
    padding: 0;
  }

  .amwal-brand {
    width: min(330px, 66%);
    margin-bottom: -10px;
  }

  .brand-copy h1 {
    font-size: 1.13rem;
  }

  .brand-copy h2 {
    margin-top: 5px;
    font-size: 1.02rem;
  }

  .brand-copy p {
    margin-top: 7px;
    font-size: .80rem;
  }

  .finance-visual {
    width: 420px;
    height: 214px;
    margin: 14px auto 0;
    transform: scale(.68) translate3d(var(--scene-x), var(--scene-y), 0);
    transform-origin: center center;
  }

  .brand-quote {
    width: min(455px, 86%);
    margin-top: 2px;
  }

  .brand-quote p {
    font-size: .75rem;
    line-height: 1.42;
  }

  .login-card {
    padding: 23px 34px 17px;
    border-radius: 27px;
  }

  .login-card::before {
    inset: 9px;
    border-radius: 21px;
  }

  .school-logo-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
  }

  .school-logo-wrap img {
    width: 52px;
    height: 52px;
  }

  .card-heading {
    margin-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: .59rem;
  }

  .card-heading h2 {
    margin-bottom: 5px;
    font-size: 1.72rem;
  }

  .card-heading p {
    font-size: .79rem;
  }

  form > label {
    margin-bottom: 5px;
    font-size: .78rem;
  }

  .input-group {
    margin-bottom: 13px;
  }

  .input-group input {
    height: 48px;
    border-radius: 11px;
    padding: 0 48px;
    font-size: .86rem;
  }

  .field-icon {
    left: 15px;
  }

  .field-icon svg,
  .password-toggle svg {
    width: 19px;
    height: 19px;
  }

  .password-toggle {
    width: 40px;
    height: 40px;
  }

  .form-options {
    margin: -1px 1px 14px;
    font-size: .78rem;
  }

  .remember-option input {
    width: 16px;
    height: 16px;
  }

  .login-button {
    min-height: 50px;
    border-radius: 12px;
    font-size: .94rem;
  }

  .access-note {
    gap: 9px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .security-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .security-icon svg {
    width: 18px;
    height: 18px;
  }

  .access-note strong {
    font-size: .70rem;
  }

  .access-note small {
    font-size: .64rem;
  }

  .card-footer {
    margin-top: 11px;
    font-size: .62rem;
  }

  .orb-a {
    width: 48px;
    height: 48px;
  }

  .orb-b {
    width: 72px;
    height: 72px;
  }

  .orb-c {
    width: 28px;
    height: 28px;
  }

  .orb-d {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1080px) {
  .login-page { overflow: auto; }
  .content-shell {
    grid-template-columns: minmax(0, .92fr) minmax(420px, 500px);
    gap: 35px;
  }
  .finance-visual { width: 450px; transform: scale(.84) translate3d(var(--scene-x), var(--scene-y), 0); margin-top: 14px; margin-bottom: 0; }
  .amwal-brand { width: min(390px, 78%); }
}

@media (max-width: 850px) {
  .ring, .swirl, .glint { display: none; }

  .login-page { padding: 34px 22px 44px; overflow: auto; }
  .content-shell { grid-template-columns: 1fr; max-width: 590px; gap: 28px; }
  .brand-panel { padding-top: 0; }
  .amwal-brand { width: min(360px, 76%); }
  .brand-copy h1 { font-size: 1.22rem; }
  .brand-copy h2 { font-size: 1.08rem; }
  .finance-visual { height: 242px; margin-top: 6px; margin-bottom: 0; transform: scale(.72); transform-origin: center center; }
  .brand-quote { justify-content: center; text-align: center; }
  .quote-line { display: none; }
  .login-card { transform: none !important; }
  .orb-d { display: none; }
}

@media (max-width: 560px) {
  .login-page { padding: 24px 14px 32px; }
  .content-shell { gap: 18px; }
  .amwal-brand { width: min(315px, 88%); }
  .brand-copy h1 { font-size: 1.05rem; }
  .brand-copy h2 { font-size: .96rem; margin-top: 6px; }
  .brand-copy p { font-size: .82rem; margin-top: 9px; }
  .finance-visual { width: 410px; height: 212px; margin-top: -2px; margin-bottom: 0; transform: scale(.60); }
  .brand-quote { width: 92%; }
  .brand-quote p { font-size: .77rem; }
  .login-card { padding: 31px 21px 22px; border-radius: 26px; }
  .login-card::before { inset: 8px; border-radius: 20px; }
  .school-logo-wrap { width: 78px; height: 78px; margin-bottom: 16px; }
  .school-logo-wrap img { width: 59px; height: 59px; }
  .eyebrow { font-size: .62rem; }
  .card-heading { margin-bottom: 25px; }
  .card-heading h2 { font-size: 1.8rem; }
  .card-heading p { font-size: .83rem; }
  .input-group { margin-bottom: 18px; }
  .input-group input { height: 55px; font-size: .90rem; padding-left: 49px; }
  .form-options { font-size: .81rem; margin-bottom: 22px; }
  .login-button { min-height: 57px; font-size: .98rem; }
  .access-note { align-items: flex-start; justify-content: flex-start; }
  .access-note small { font-size: .68rem; }
  .orb-a { left: 5%; top: 4%; width: 44px; height: 44px; }
  .orb-b { width: 68px; height: 68px; top: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
