.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 8% -5%, rgba(77, 163, 255, 0.2), transparent 60%),
    radial-gradient(1000px 450px at 100% 0%, rgba(138, 82, 232, 0.2), transparent 58%),
    #eef3fb;
}

/* Animated meshes */
.mesh {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
  pointer-events: none;
}
.mesh-1 {
  width: 340px; height: 340px;
  left: -90px; top: -80px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.28), transparent 70%);
  animation: float1 12s ease-in-out infinite;
}
.mesh-2 {
  width: 280px; height: 280px;
  right: -60px; top: 20px;
  background: radial-gradient(circle, rgba(138, 82, 232, 0.32), transparent 70%);
  animation: float2 14s ease-in-out infinite;
}
.mesh-3 {
  width: 320px; height: 320px;
  right: -100px; bottom: -120px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.24), transparent 70%);
  animation: float3 15s ease-in-out infinite;
}

.auth-card {
  width: min(440px, 100%);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 2;
  position: relative;
}

.glass {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
}

.pop-in {
  animation: popIn .45s cubic-bezier(.2,.8,.2,1) both;
}

/* LEFT PANEL */
.auth-left {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 20px;
  background: linear-gradient(135deg, #4da3ff 0%, #8a52e8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.glow-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  top: -150px;
  right: -80px;
  background: rgba(255,255,255,.20);
  animation: spinSlow 16s linear infinite;
}
.auth-logo-wrap { position: relative; z-index: 2; }
.bobbing { animation: bob 5s ease-in-out infinite; }

.auth-left-text {
  text-align: center;
  color: #fff;
  z-index: 2;
}
.left-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.left-sub {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .95;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 10px;
}

.auth-login-btn-link {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(2px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .25s ease;
  z-index: 2;
}
.auth-login-btn-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.28);
}

/* RIGHT PANEL */
.auth-right {
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.9);
}
.auth-title {
  margin: 2px 0 4px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #0f172a;
}
.auth-subtitle {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-group { display: flex; flex-direction: column; gap: 6px; }
.auth-row { display: grid; grid-template-columns: 1fr; gap: 10px; }

.auth-label {
  margin: 0;
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

.auth-input,
.auth-select {
  width: 100%;
  height: 45px;
  border: 1px solid #d8e1f0;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0 12px;
  font-size: 14px;
  color: #1f2937;
  transition: all .22s ease;
}
.auth-input:hover { border-color: #bfd1eb; background: #fff; }
.auth-input:focus,
.auth-select:focus {
  outline: none;
  border-color: #4da3ff;
  box-shadow: 0 0 0 4px rgba(77,163,255,.16);
  background: #fff;
}

/* password */
.auth-password-wrap { position: relative; display: flex; align-items: center; }
.auth-input--password { padding-right: 40px; }
.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px;
  transition: .2s;
}
.auth-password-toggle:hover {
  color: #4da3ff;
  background: rgba(77,163,255,.1);
}

/* radios */
.auth-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}
.auth-radio input {
  width: 14px; height: 14px; accent-color: #4da3ff;
}

/* submit */
.auth-submit {
  margin-top: 6px;
  width: 100%;
  height: 47px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4da3ff, #8a52e8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(77,163,255,.34);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  position: relative;
  overflow: hidden;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(77,163,255,.42);
}
.auth-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.shine::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

/* messages */
.auth-error {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}
.auth-success {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* desktop */
@media (min-width: 900px) {
  .auth-page { padding: 24px; }
  .auth-card {
    width: min(1120px, calc(100vw - 64px));
    min-height: 650px;
    grid-template-columns: 38% 62%;
  }
  .auth-left {
    background: rgba(255,255,255,.9);
    border-right: 1px solid #e5e7eb;
  }
  .glow-orb {
    background: linear-gradient(135deg, rgba(77,163,255,.22), rgba(138,82,232,.2));
    top: -120px;
    left: -80px;
    right: auto;
  }
  .left-title { color: #0f172a; }
  .left-sub { color: #64748b; }
  .chip { color: #334155; border-color: #d6e2f4; background: #eff6ff; }
  .auth-login-btn-link {
    color: #1f2937;
    border: 1px solid #cfd8e3;
    background: #eef4ff;
  }
  .auth-right { padding: 28px 34px; }
  .auth-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* keyframes */
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(16px, 12px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-12px, 14px); }
}
@keyframes float3 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(10px, -10px); }
}
@keyframes shine {
  0% { left: -140%; }
  100% { left: 160%; }
}
/* FIX LOGO POSITION - anti miring/geser */
.auth-logo-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  place-items: center;
  margin-inline: auto;
  transform: none !important;
}

.auth-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.auth-brand__icon {
  width: 140px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.auth-brand__icon img,
.auth-brand__title,
.auth-brand__subtitle {
  display: block;
  margin-inline: auto;
}

.auth-brand__title {
  width: min(320px, 92%);
  height: auto;
  margin-top: 8px;
}

.auth-brand__subtitle {
  width: min(300px, 88%);
  height: auto;
  margin-top: 2px;
}

/* FINAL FIX LOGO POSITION */
.auth-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none !important;
  margin: 0 auto 6px;
}

.auth-brand {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-brand__icon {
  width: 130px;
  height: 130px;         /* lebih compact supaya tidak nabrak title */
  margin: 0 auto 10px;   /* jarak ke tulisan SCHOOLS */
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-brand__title {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 2px;
  display: block;
}

.auth-brand__subtitle {
  width: 100%;
  max-width: 290px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* matikan animasi logo supaya tidak geser */
.bobbing {
  animation: none !important;
}