/* ========== Educare platform login (always applied) ========== */
.edu-login {
  --edu-ink: #0f172a;
  --edu-muted: #64748b;
  --edu-line: #e2e8f0;
  --edu-primary: #2563eb;
  --edu-teal: #0d9488;
  --edu-violet: #4f46e5;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  color: var(--edu-ink);
  box-sizing: border-box;
}
.edu-login *, .edu-login *::before, .edu-login *::after { box-sizing: border-box; }
.edu-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(37,99,235,.35), transparent 55%),
    radial-gradient(900px 600px at 100% 10%, rgba(13,148,136,.28), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(79,70,229,.22), transparent 45%),
    linear-gradient(160deg, #0b1224 0%, #111827 40%, #0f766e 160%);
}
.edu-login--officer .edu-bg {
  background:
    radial-gradient(1000px 600px at 0% 0%, rgba(13,148,136,.4), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(37,99,235,.25), transparent 50%),
    linear-gradient(165deg, #042f2e 0%, #0f172a 50%, #134e4a 130%);
}
.edu-login--owner .edu-bg {
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(79,70,229,.45), transparent 55%),
    radial-gradient(800px 500px at 100% 0%, rgba(37,99,235,.3), transparent 50%),
    linear-gradient(155deg, #020617 0%, #1e1b4b 55%, #0f172a 120%);
}
.edu-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
  animation: edu-float 12s ease-in-out infinite;
}
.edu-orb-1 { width: 280px; height: 280px; background: #3b82f6; top: -60px; left: -40px; }
.edu-orb-2 { width: 220px; height: 220px; background: #14b8a6; bottom: 10%; right: -50px; animation-delay: -4s; }
.edu-orb-3 { width: 160px; height: 160px; background: #818cf8; top: 40%; left: 35%; animation-delay: -7s; opacity: .35; }
@keyframes edu-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}
.edu-grid-lines {
  position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.edu-shell {
  position: relative; z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.2);
  min-height: 560px;
}
.edu-aside {
  background: linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 42%, #0f766e 120%);
  color: #fff;
  padding: 2.25rem 2rem;
  display: flex;
  position: relative;
  overflow: hidden;
}
.edu-login--officer .edu-aside {
  background: linear-gradient(160deg, #0f766e 0%, #115e59 40%, #1d4ed8 130%);
}
.edu-login--owner .edu-aside {
  background: linear-gradient(155deg, #4f46e5 0%, #312e81 45%, #1e3a8a 120%);
}
.edu-aside::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 40px;
  background: rgba(255,255,255,.08); transform: rotate(18deg);
}
.edu-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; }
.edu-logo-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.edu-logo-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.edu-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.edu-brand-sub { font-size: .75rem; opacity: .8; }
.edu-aside-title {
  margin: 0 0 .85rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25; font-weight: 800; letter-spacing: -.02em;
}
.edu-aside-lead { margin: 0 0 1.5rem; opacity: .92; line-height: 1.6; font-size: .95rem; }
.edu-feature-list { display: flex; flex-direction: column; gap: .85rem; margin-top: auto; }
.edu-feature {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem .85rem; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
}
.edu-fi { font-size: 1.2rem; line-height: 1; }
.edu-feature strong { display: block; font-size: .88rem; margin-bottom: .15rem; }
.edu-feature span { display: block; font-size: .78rem; opacity: .85; line-height: 1.4; }
.edu-aside-foot { margin-top: 1.5rem; font-size: .75rem; opacity: .7; }
.edu-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.edu-stat {
  padding: .65rem .5rem; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.1);
}
.edu-stat strong { display: block; font-size: .78rem; margin-bottom: .2rem; }
.edu-stat span { font-size: .68rem; opacity: .85; }
.edu-illus { margin-top: auto; height: 72px; position: relative; opacity: .9; }
.edu-book, .edu-grad {
  position: absolute; border-radius: 12px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
}
.edu-book { width: 90px; height: 56px; left: 0; bottom: 0; transform: skewX(-8deg); }
.edu-grad { width: 48px; height: 48px; right: 24px; bottom: 8px; border-radius: 50% 50% 8px 8px; }
.edu-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.edu-panel-card { width: 100%; max-width: 380px; }
.edu-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  padding: .3rem; border-radius: 14px; background: #f1f5f9; margin-bottom: 1.25rem;
}
.edu-tab {
  border: none; background: transparent; border-radius: 11px;
  padding: .55rem .5rem; font-size: .82rem; font-weight: 700;
  color: var(--edu-muted); cursor: pointer; transition: .15s ease;
}
.edu-tab.active {
  background: #fff; color: var(--edu-ink);
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.edu-panel-head { text-align: center; margin-bottom: 1rem; }
.edu-panel-icon {
  width: 56px; height: 56px; margin: 0 auto .7rem; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(145deg, #eff6ff, #ecfdf5);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(37,99,235,.08);
}
.edu-panel-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.edu-panel-head p { margin: .4rem 0 0; color: var(--edu-muted); font-size: .86rem; line-height: 1.45; }
.edu-lbl {
  display: block; font-size: .75rem; font-weight: 700; color: #475569;
  margin: .9rem 0 .35rem; letter-spacing: .01em;
}
.edu-field {
  display: flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--edu-line); border-radius: 14px;
  padding: .15rem .85rem; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.edu-field:focus-within {
  border-color: var(--edu-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.edu-login--officer .edu-field:focus-within {
  border-color: var(--edu-teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,.14);
}
.edu-field-ico { opacity: .55; font-size: .95rem; }
.edu-input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: .7rem 0; font-size: .95rem; color: var(--edu-ink);
  min-width: 0;
}
.edu-eye {
  border: none; background: #f1f5f9; color: #475569;
  font-size: .72rem; font-weight: 700; padding: .3rem .55rem;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.edu-btn {
  width: 100%; margin-top: 1.15rem; border: none; border-radius: 14px;
  padding: .85rem 1rem; font-size: .95rem; font-weight: 800;
  color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
}
.edu-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.edu-btn:disabled { opacity: .7; cursor: wait; }
.edu-btn-inst {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37,99,235,.35);
}
.edu-btn-officer {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  box-shadow: 0 12px 28px rgba(13,148,136,.35);
}
.edu-btn-owner {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 12px 28px rgba(79,70,229,.4);
}
.edu-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: edu-spin .7s linear infinite;
  display: inline-block;
}
@keyframes edu-spin { to { transform: rotate(360deg); } }
.edu-links {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem;
  justify-content: center; margin-top: 1.15rem;
  font-size: .8rem;
}
.edu-links a { color: #475569; text-decoration: none; font-weight: 600; }
.edu-links a:hover { color: var(--edu-primary); }
.edu-text-btn {
  border: none; background: none; color: var(--edu-primary);
  font-size: .78rem; font-weight: 700; cursor: pointer; padding: .25rem 0;
}
.edu-hint { margin: .35rem 0 0; font-size: .75rem; color: var(--edu-muted); }
.edu-banner-officer {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .75rem .85rem; border-radius: 14px; margin-bottom: .25rem;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  border: 1px solid #99f6e4; color: #134e4a;
}
.edu-banner-officer strong { display: block; font-size: .82rem; margin-bottom: .15rem; }
.edu-banner-officer span:last-child { display: block; font-size: .75rem; opacity: .9; line-height: 1.4; }
@media (max-width: 840px) {
  .edu-shell { grid-template-columns: 1fr; min-height: auto; }
  .edu-aside { padding: 1.5rem 1.35rem 1.25rem; }
  .edu-illus, .edu-feature-list { display: none; }
  .edu-aside-title { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .edu-login { padding: .75rem; }
  .edu-shell { border-radius: 20px; }
  .edu-stat-row { grid-template-columns: 1fr; }
}


/* Animated institution login experience */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  position: relative;
  overflow: hidden;
  background: #0b1220;
}
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
}

/* Animated mesh background */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.login-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: blobMove 18s ease-in-out infinite;
}
.login-bg .blob.b1 { width: 420px; height: 420px; background: #0d9488; top: -80px; left: -60px; }
.login-bg .blob.b2 { width: 380px; height: 380px; background: #2563eb; bottom: -100px; right: 10%; animation-delay: -6s; }
.login-bg .blob.b3 { width: 300px; height: 300px; background: #f59e0b; top: 40%; left: 35%; animation-delay: -11s; opacity: .35; }
.login-bg .blob.b4 { width: 260px; height: 260px; background: #7c3aed; bottom: 20%; left: 5%; animation-delay: -3s; opacity: .4; }
@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}

/* Soft grid / particles */
.login-bg .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.login-bg .orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.login-bg .orbit.o1 { width: 520px; height: 520px; top: 10%; left: 5%; }
.login-bg .orbit.o2 { width: 720px; height: 720px; top: -5%; left: -8%; animation-direction: reverse; animation-duration: 55s; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-hero, .login-panel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
}
.login-hero { color: #f8fafc; }
.login-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.login-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

/* Floating infographic icons */
.login-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.float-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  animation: floatY 6s ease-in-out infinite;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.float-icon.sm { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
.float-icon:nth-child(1) { top: 10%; left: 8%; }
.float-icon:nth-child(2) { top: 18%; right: 12%; animation-delay: 1s; animation-duration: 7s; }
.float-icon:nth-child(3) { top: 48%; left: 12%; animation-delay: .5s; animation-duration: 5.5s; }
.float-icon:nth-child(4) { bottom: 22%; right: 16%; animation-delay: 1.6s; }
.float-icon:nth-child(5) { bottom: 14%; left: 28%; animation-delay: .2s; animation-duration: 8s; }
.float-icon:nth-child(6) { top: 36%; right: 6%; animation-delay: 2s; }
.float-icon:nth-child(7) { top: 68%; left: 42%; animation-delay: 1.3s; animation-duration: 6.5s; }
.float-icon:nth-child(8) { top: 8%; left: 42%; animation-delay: .8s; }
.float-icon:nth-child(9) { bottom: 8%; right: 36%; animation-delay: 2.4s; }
.float-icon:nth-child(10) { top: 55%; right: 28%; animation-delay: 1.1s; animation-duration: 7.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.login-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.login-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Institution type visual strip */
.inst-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-top: 1.75rem;
  max-width: 420px;
}
.inst-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: .75rem .5rem;
  text-align: center;
  transition: transform .25s, background .25s;
}
.inst-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.inst-card .ic { font-size: 1.6rem; display: block; margin-bottom: .25rem; }
.inst-card .lb { font-size: .72rem; opacity: .9; font-weight: 600; }

.login-panel { align-items: center; background: transparent; }
.login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,.96);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.5);
  animation: cardIn .6s ease-out;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.login-card h2 {
  margin: .25rem 0 .35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}
.login-card .sub {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin: 0 0 1rem;
}
.role-chips {
  display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-bottom: 1rem;
}
.role-chip {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 600;
}
.login-demo {
  margin-top: 1rem;
  font-size: .8rem;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: .65rem;
}
.login-footer-links {
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
}
.login-footer-links a { color: #0d9488; font-weight: 600; }

/* Institution-aware accent themes */
.login-page.theme-madrasha .blob.b1 { background: #059669; }
.login-page.theme-madrasha .blob.b2 { background: #0f766e; }
.login-page.theme-college .blob.b1 { background: #1d4ed8; }
.login-page.theme-college .blob.b2 { background: #7c3aed; }
.login-page.theme-university .blob.b1 { background: #4f46e5; }
.login-page.theme-university .blob.b2 { background: #db2777; }
.login-page.theme-school .blob.b1 { background: #0d9488; }
.login-page.theme-school .blob.b2 { background: #2563eb; }

@media (max-width: 960px) {
  .login-hero { min-height: auto; padding-top: 2rem; padding-bottom: 1rem; }
  .login-panel { min-height: auto; padding-bottom: 2.5rem; }
  .float-icon:nth-child(n+7) { display: none; }
  .inst-strip { max-width: 100%; }
}

/* ========== Tamirul Millat login (tmt.edu.bd/login style) ========== */
.login-page.theme-tmt {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0d7377 0%, #2d9a8f 45%, #a8d5a2 100%);
  grid-template-columns: none;
}
.tmt-login-shell { width: 100%; max-width: 920px; }
.tmt-login-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
  min-height: 480px;
}
@media (max-width: 800px) {
  .tmt-login-card { grid-template-columns: 1fr; }
  .tmt-login-visual { min-height: 180px; max-height: 200px; }
}
.tmt-login-visual {
  position: relative;
  background: #0f766e;
  min-height: 100%;
}
.tmt-login-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 480px;
}
.tmt-login-visual-fallback {
  min-height: 480px;
  background:
    linear-gradient(160deg, rgba(13,115,119,.55), rgba(15,23,42,.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect fill='%230d7377' width='800' height='600'/%3E%3Crect fill='%232d9a8f' x='80' y='120' width='280' height='360' rx='8' opacity='.5'/%3E%3Crect fill='%23a8d5a2' x='400' y='160' width='260' height='320' rx='8' opacity='.35'/%3E%3Ccircle fill='%23fff' cx='200' cy='80' r='28' opacity='.25'/%3E%3C/svg%3E") center/cover;
}
.tmt-login-form {
  padding: 2rem 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tmt-login-brand { text-align: center; margin-bottom: 1.25rem; }
.tmt-login-logo {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(13,115,119,.2);
  margin-bottom: 0.65rem;
}
.tmt-login-logo-ph {
  width: 72px; height: 72px; margin: 0 auto 0.65rem;
  border-radius: 50%; background: #e6f4f1; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.tmt-login-brand h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d7377;
  line-height: 1.3;
}
.tmt-login-addr {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}
.tmt-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f766e;
  margin: 0.85rem 0 0.4rem;
}
.tmt-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid #d1e7e4;
  border-radius: 14px;
  padding: 0 0.9rem;
  min-height: 48px;
  background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tmt-field:hover {
  border-color: #9ecfc9;
}
.tmt-field:focus-within {
  border-color: #0d7377;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,115,119,.14);
}
.tmt-ico {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: #e6f4f1;
  color: #0d7377;
  font-size: 0.85rem;
  margin-right: 0;
}
.tmt-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 0.15rem;
  font-size: 0.98rem;
  font-weight: 500;
  background: transparent;
  color: #0f172a;
  min-width: 0;
}
.tmt-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.tmt-eye {
  flex-shrink: 0;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.tmt-eye:hover { background: #e2e8f0; }
.tmt-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0.75rem 0 1rem; font-size: 0.82rem;
}
.tmt-remember { color: #475569; display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.tmt-forgot { color: #0d7377; font-weight: 600; cursor: default; }
.tmt-signin {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #0d7377 0%, #2d9a8f 55%, #b7dfb0 100%);
  box-shadow: 0 8px 20px rgba(13,115,119,.28);
  transition: filter .15s, transform .1s;
}
.tmt-signin:hover:not(:disabled) { filter: brightness(1.05); }
.tmt-signin:disabled { opacity: 0.7; cursor: wait; }
.tmt-demo {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.85rem 0 0.35rem;
}
.tmt-links {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.tmt-links a { color: #0d7377; text-decoration: none; font-weight: 600; margin: 0 0.25rem; }
.tmt-links a:hover { text-decoration: underline; }
.tmt-lang { display: flex; justify-content: center; margin-top: 0.25rem; }

/* ========== Edufy login ========== */
.login-page.theme-edufy {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 40%, #0ea5e9 100%);
  grid-template-columns: none;
}
.edufy-login-wrap { width: 100%; max-width: 420px; }
.edufy-login-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.edufy-login-head { text-align: center; margin-bottom: 1rem; }
.edufy-login-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 0.5rem; }
.edufy-login-head h1 { margin: 0; font-size: 1.25rem; color: #0f172a; }
.edufy-login-head p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.9rem; }

/* Edufy / Mud tenant login field polish */
.theme-edufy .edufy-login-card .mud-input-control,
.login-page .login-card .mud-input-control {
  margin-bottom: 0.35rem;
}
.theme-edufy .edufy-login-card .mud-input-outlined .mud-input-outlined-border,
.login-page .login-card .mud-input-outlined .mud-input-outlined-border {
  border-radius: 14px !important;
  border-width: 1.5px !important;
}
.theme-edufy .edufy-login-card .mud-input:focus-within .mud-input-outlined-border,
.login-page .login-card .mud-input:focus-within .mud-input-outlined-border {
  border-color: #0ea5e9 !important;
}
.theme-edufy .edufy-login-card .mud-input-label,
.login-page .login-card .mud-input-label {
  font-weight: 600 !important;
}
.tmt-signin {
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(13,115,119,.25);
}
.tmt-signin:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ========== Tenant login — realistic motion background ========== */
.tenant-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background: #050a14;
}
.tenant-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  perspective: 900px;
}

/* Base sky gradient (static depth) */
.tenant-sky {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #0a1628 0%, #0c1e36 35%, #0a2a3d 70%, #071018 100%);
}

/* Dual aurora layers — slow organic drift */
.tenant-aurora {
  position: absolute; inset: -30%;
  filter: blur(40px) saturate(1.2);
  opacity: .9;
  will-change: transform;
}
.tenant-aurora.a1 {
  background:
    radial-gradient(ellipse 42% 36% at 22% 28%, rgba(56,189,248,.5), transparent 60%),
    radial-gradient(ellipse 38% 32% at 78% 18%, rgba(99,102,241,.42), transparent 58%),
    radial-gradient(ellipse 34% 40% at 55% 75%, rgba(20,184,166,.38), transparent 62%);
  animation: tenant-aurora-a 22s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.tenant-aurora.a2 {
  background:
    radial-gradient(ellipse 36% 30% at 12% 70%, rgba(37,99,235,.35), transparent 55%),
    radial-gradient(ellipse 40% 28% at 88% 55%, rgba(45,212,191,.28), transparent 58%),
    radial-gradient(ellipse 28% 34% at 48% 12%, rgba(129,140,248,.3), transparent 55%);
  animation: tenant-aurora-b 28s cubic-bezier(.4,.1,.6,.9) infinite alternate;
  mix-blend-mode: screen;
  opacity: .75;
}
@keyframes tenant-aurora-a {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(-4%, 3%, 0) scale(1.06) rotate(1.2deg); }
  66%  { transform: translate3d(3%, -2%, 0) scale(1.04) rotate(-.8deg); }
  100% { transform: translate3d(2%, 4%, 0) scale(1.08) rotate(.5deg); }
}
@keyframes tenant-aurora-b {
  0%   { transform: translate3d(0,0,0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(5%, -3%, 0) scale(1.1) rotate(-1.5deg); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02) rotate(1deg); }
}

/* Soft cloud haze drifting horizontally */
.tenant-clouds .cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  background: rgba(148,163,184,.12);
  animation: tenant-cloud-drift linear infinite;
}
.tenant-clouds .c1 {
  width: 420px; height: 160px; top: 12%; left: -10%;
  animation-duration: 48s;
}
.tenant-clouds .c2 {
  width: 360px; height: 140px; top: 42%; left: -15%;
  animation-duration: 62s; animation-delay: -20s;
  background: rgba(125,211,252,.1);
}
.tenant-clouds .c3 {
  width: 500px; height: 180px; bottom: 8%; left: -20%;
  animation-duration: 72s; animation-delay: -35s;
  background: rgba(165,180,252,.1);
}
@keyframes tenant-cloud-drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(35vw, -12px, 0); }
  100% { transform: translate3d(70vw, 0, 0); }
}

/* God rays — slow breathe */
.tenant-beams span {
  position: absolute;
  top: -40%;
  width: 22%;
  height: 180%;
  background: linear-gradient(180deg,
    rgba(255,255,255,.11) 0%,
    rgba(186,230,253,.06) 28%,
    transparent 70%);
  transform-origin: top center;
  filter: blur(12px);
  animation: tenant-beam-breathe 14s ease-in-out infinite;
  opacity: 0;
}
.tenant-beams span:nth-child(1) { left: 8%;  transform: rotate(12deg); animation-delay: 0s; }
.tenant-beams span:nth-child(2) { left: 38%; width: 16%; transform: rotate(18deg); animation-delay: -4.5s; }
.tenant-beams span:nth-child(3) { left: 68%; transform: rotate(14deg); animation-delay: -9s; }
@keyframes tenant-beam-breathe {
  0%, 100% { opacity: .12; transform: rotate(12deg) translateY(0); }
  40% { opacity: .38; transform: rotate(16deg) translateY(2%); }
  70% { opacity: .2; transform: rotate(13deg) translateY(1%); }
}

/* Dust motes — realistic float with sway */
.tenant-dust i {
  position: absolute;
  bottom: -5%;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 6px rgba(186,230,253,.6);
  animation: tenant-dust-rise linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}
.tenant-dust i:nth-child(odd)  { width: 2px; height: 2px; }
.tenant-dust i:nth-child(even) { width: 3px; height: 3px; }
.tenant-dust i:nth-child(3n)   { width: 4px; height: 4px; box-shadow: 0 0 10px rgba(125,211,252,.7); }
.tenant-dust i:nth-child(1)  { left: 5%;  animation-duration: 16s; animation-delay: 0s; }
.tenant-dust i:nth-child(2)  { left: 11%; animation-duration: 21s; animation-delay: -2s; }
.tenant-dust i:nth-child(3)  { left: 17%; animation-duration: 18s; animation-delay: -5s; }
.tenant-dust i:nth-child(4)  { left: 23%; animation-duration: 24s; animation-delay: -1s; }
.tenant-dust i:nth-child(5)  { left: 29%; animation-duration: 17s; animation-delay: -7s; }
.tenant-dust i:nth-child(6)  { left: 35%; animation-duration: 22s; animation-delay: -3s; }
.tenant-dust i:nth-child(7)  { left: 41%; animation-duration: 19s; animation-delay: -9s; }
.tenant-dust i:nth-child(8)  { left: 47%; animation-duration: 25s; animation-delay: -4s; }
.tenant-dust i:nth-child(9)  { left: 53%; animation-duration: 15s; animation-delay: -6s; }
.tenant-dust i:nth-child(10) { left: 59%; animation-duration: 23s; animation-delay: -8s; }
.tenant-dust i:nth-child(11) { left: 65%; animation-duration: 20s; animation-delay: -10s; }
.tenant-dust i:nth-child(12) { left: 71%; animation-duration: 18s; animation-delay: -12s; }
.tenant-dust i:nth-child(13) { left: 77%; animation-duration: 26s; animation-delay: -11s; }
.tenant-dust i:nth-child(14) { left: 83%; animation-duration: 16s; animation-delay: -13s; }
.tenant-dust i:nth-child(15) { left: 89%; animation-duration: 21s; animation-delay: -15s; }
.tenant-dust i:nth-child(16) { left: 8%;  animation-duration: 27s; animation-delay: -14s; }
.tenant-dust i:nth-child(17) { left: 33%; animation-duration: 19s; animation-delay: -16s; }
.tenant-dust i:nth-child(18) { left: 56%; animation-duration: 22s; animation-delay: -17s; }
.tenant-dust i:nth-child(19) { left: 74%; animation-duration: 17s; animation-delay: -18s; }
.tenant-dust i:nth-child(20) { left: 94%; animation-duration: 24s; animation-delay: -19s; }
.tenant-dust i:nth-child(21) { left: 14%; animation-duration: 20s; animation-delay: -21s; }
.tenant-dust i:nth-child(22) { left: 44%; animation-duration: 28s; animation-delay: -22s; }
.tenant-dust i:nth-child(23) { left: 68%; animation-duration: 16s; animation-delay: -23s; }
.tenant-dust i:nth-child(24) { left: 96%; animation-duration: 19s; animation-delay: -24s; }
@keyframes tenant-dust-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(.5);
    opacity: 0;
  }
  8% { opacity: .7; }
  25% {
    transform: translate3d(12px, -25vh, 0) scale(.85);
    opacity: .85;
  }
  50% {
    transform: translate3d(-18px, -50vh, 0) scale(1);
    opacity: .55;
  }
  75% {
    transform: translate3d(10px, -75vh, 0) scale(.9);
    opacity: .35;
  }
  100% {
    transform: translate3d(-6px, -105vh, 0) scale(.6);
    opacity: 0;
  }
}

/* Realistic floating education objects */
.tenant-floaters .floater {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}
.tenant-floaters .book {
  width: 72px; height: 52px;
  left: 11%; bottom: 16%;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(145deg, #e2e8f0 0%, #94a3b8 40%, #64748b 100%);
  box-shadow:
    4px 12px 28px rgba(0,0,0,.35),
    inset -3px 0 0 rgba(15,23,42,.15),
    inset 0 1px 0 rgba(255,255,255,.4);
  animation: tenant-float-book 11s ease-in-out infinite;
}
.tenant-floaters .book .spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(180deg, #1d4ed8, #0f766e);
  border-radius: 4px 0 0 4px;
}
.tenant-floaters .book .page {
  position: absolute; right: 4px; top: 6px; bottom: 6px; width: 52px;
  background: repeating-linear-gradient(
    180deg,
    #f8fafc 0px, #f8fafc 3px,
    #e2e8f0 3px, #e2e8f0 4px
  );
  border-radius: 1px 4px 4px 1px;
  opacity: .9;
}
.tenant-floaters .book.b2 {
  left: auto; right: 12%; bottom: 26%;
  width: 58px; height: 42px;
  animation-name: tenant-float-book-alt;
  animation-duration: 14s;
  animation-delay: -3s;
  opacity: .88;
  filter: hue-rotate(25deg);
}
.tenant-floaters .cap {
  width: 64px; height: 36px;
  right: 20%; top: 20%;
  animation: tenant-float-cap 13s ease-in-out infinite;
  animation-delay: -2s;
}
.tenant-floaters .cap .board {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
  box-shadow: 0 14px 28px rgba(0,0,0,.4);
}
.tenant-floaters .cap .tassel {
  position: absolute; right: 8px; top: 28px;
  width: 3px; height: 28px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  border-radius: 2px;
  transform-origin: top center;
  animation: tenant-tassel 2.8s ease-in-out infinite;
}
.tenant-floaters .ring {
  width: 100px; height: 100px;
  left: 26%; top: 14%;
  border-radius: 50%;
  border: 2px solid rgba(186,230,253,.28);
  box-shadow:
    0 0 24px rgba(56,189,248,.12),
    inset 0 0 20px rgba(125,211,252,.08);
  animation: tenant-float-ring 18s ease-in-out infinite;
  animation-delay: -5s;
}
.tenant-floaters .leaf {
  width: 28px; height: 40px;
  left: 72%; bottom: 38%;
  border-radius: 2px 80% 2px 80%;
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
  animation: tenant-float-leaf 9s ease-in-out infinite;
  animation-delay: -1.5s;
  opacity: .75;
}

@keyframes tenant-float-book {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg) rotateY(-8deg); }
  30% { transform: translate3d(8px, -16px, 12px) rotate(-2deg) rotateY(4deg); }
  60% { transform: translate3d(-6px, -10px, 0) rotate(-8deg) rotateY(-12deg); }
}
@keyframes tenant-float-book-alt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg) rotateY(10deg); }
  40% { transform: translate3d(-10px, -20px, 8px) rotate(4deg) rotateY(-4deg); }
  70% { transform: translate3d(6px, -8px, 0) rotate(10deg) rotateY(12deg); }
}
@keyframes tenant-float-cap {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(4deg); }
  50% { transform: translate3d(-12px, -18px, 16px) rotate(-3deg); }
}
@keyframes tenant-tassel {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-10deg); }
}
@keyframes tenant-float-ring {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); opacity: .7; }
  50% { transform: translate3d(14px, -22px, 0) scale(1.06) rotate(12deg); opacity: 1; }
}
@keyframes tenant-float-leaf {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-20deg); }
  35% { transform: translate3d(18px, -24px, 0) rotate(8deg); }
  70% { transform: translate3d(-8px, -12px, 0) rotate(-28deg); }
}

.tenant-bg-grid {
  position: absolute; inset: 0; opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 68%);
  animation: tenant-grid-pan 40s linear infinite;
}
@keyframes tenant-grid-pan {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}
.tenant-bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(5,10,20,.55) 70%, rgba(5,10,20,.88) 100%);
  pointer-events: none;
}

/* Shell + card (polished) */
.tenant-shell {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.75rem;
  align-items: center;
}
.tenant-brand-col { color: #fff; padding: 1rem 1.25rem; }
.tenant-brand-inner { max-width: 460px; }
.tenant-logo {
  height: 68px; width: auto; max-width: 200px; object-fit: contain;
  margin-bottom: 1.35rem; filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.tenant-logo-mark {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.2rem;
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.tenant-title {
  margin: 0 0 .85rem; font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  text-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.tenant-tagline {
  margin: 0 0 1.35rem; font-size: 1.02rem; line-height: 1.65;
  color: rgba(226,232,240,.92);
}
.tenant-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.tenant-pills span {
  font-size: .76rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.tenant-addr { margin: 0; font-size: .88rem; color: rgba(226,232,240,.8); }
.tenant-form-col { display: flex; align-items: center; justify-content: center; }
.tenant-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 26px;
  padding: 1.85rem 1.6rem 1.45rem;
  box-shadow:
    0 40px 100px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.5),
    inset 0 1px 0 rgba(255,255,255,.9);
  animation: tenant-card-in .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes tenant-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.tenant-card-head { text-align: center; margin-bottom: 1.05rem; }
.tenant-card-head h2 {
  margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a;
}
.tenant-card-head p { margin: .4rem 0 0; color: #64748b; font-size: .9rem; }
.tenant-lbl {
  display: block; font-size: .76rem; font-weight: 700; color: #475569;
  margin: .9rem 0 .35rem; letter-spacing: .01em;
}
.tenant-field {
  display: flex; align-items: center; gap: .45rem;
  border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: .12rem .85rem; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tenant-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
  transform: translateY(-1px);
}
.tenant-ico { opacity: .55; font-size: .95rem; }
.tenant-input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: .75rem 0; font-size: .95rem; color: #0f172a; min-width: 0;
}
.tenant-eye {
  border: none; background: #f1f5f9; color: #475569;
  font-size: .72rem; font-weight: 700; padding: .32rem .55rem;
  border-radius: 8px; cursor: pointer;
}
.tenant-btn {
  width: 100%; margin-top: 1.25rem; border: none; border-radius: 14px;
  padding: .95rem 1rem; font-size: .98rem; font-weight: 800; color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(120deg, #2563eb 0%, #4f46e5 40%, #0d9488 100%);
  background-size: 200% 200%;
  box-shadow: 0 16px 36px rgba(37,99,235,.4);
  animation: tenant-btn-shift 7s ease infinite;
  transition: transform .12s, filter .12s;
}
.tenant-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.tenant-btn:disabled { opacity: .72; cursor: wait; }
@keyframes tenant-btn-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tenant-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: tenant-spin .7s linear infinite; display: inline-block;
}
@keyframes tenant-spin { to { transform: rotate(360deg); } }
.tenant-foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center;
  margin-top: 1.15rem; font-size: .82rem;
}
.tenant-foot a { color: #475569; text-decoration: none; font-weight: 600; }
.tenant-foot a:hover { color: #2563eb; }
.tenant-slug-chip {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1px solid #bfdbfe; color: #1e3a8a;
  font-size: .85rem; margin-bottom: .25rem;
}
.tenant-chip-btn {
  margin-left: auto; border: none; background: #fff; color: #2563eb;
  font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 8px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (max-width: 900px) {
  .tenant-shell { grid-template-columns: 1fr; gap: 1rem; }
  .tenant-brand-col { text-align: center; padding: .5rem; }
  .tenant-brand-inner { max-width: 100%; margin: 0 auto; }
  .tenant-pills { justify-content: center; }
  .tenant-logo, .tenant-logo-mark { margin-left: auto; margin-right: auto; }
  .tenant-floaters { display: none; }
}
@media (max-width: 480px) {
  .tenant-login { padding: .85rem; }
  .tenant-card { border-radius: 22px; padding: 1.4rem 1.15rem 1.15rem; }
  .tenant-title { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tenant-aurora, .tenant-clouds .cloud, .tenant-beams span,
  .tenant-dust i, .tenant-floaters .floater, .tenant-floaters .tassel,
  .tenant-bg-grid, .tenant-btn { animation: none !important; }
}
/* ========== Education login — Dribbble-inspired ========== */
.edu-auth {
  --edu-ink: #1e1b4b;
  --edu-muted: #64748b;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--edu-ink);
  background: #f8fafc;
}
.edu-auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.edu-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: edu-blob-move 16s ease-in-out infinite;
}
.edu-blob.b1 { width: 480px; height: 480px; top: -120px; left: -100px; background: #c7d2fe; }
.edu-blob.b2 { width: 420px; height: 420px; bottom: -140px; right: -80px; background: #a5f3fc; animation-delay: -6s; }
.edu-blob.b3 { width: 280px; height: 280px; top: 40%; left: 45%; background: #ddd6fe; animation-delay: -11s; opacity: .4; }
@keyframes edu-blob-move {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}
.edu-dot-pattern {
  position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(#94a3b8 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
}
.edu-auth-shell {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  min-height: min(640px, calc(100vh - 2.5rem));
  display: grid;
  grid-template-columns: 1.1fr .95fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(30, 27, 75, .12), 0 0 0 1px rgba(226, 232, 240, .9);
}
.edu-auth-art {
  background: linear-gradient(160deg, #4f46e5 0%, #6366f1 35%, #0ea5e9 100%);
  color: #fff;
  padding: 2.25rem 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.edu-auth-art::after {
  content: "";
  position: absolute; right: -40px; bottom: -50px;
  width: 200px; height: 200px; border-radius: 40px;
  background: rgba(255,255,255,.08); transform: rotate(18deg);
}
.edu-art-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.edu-art-badge {
  display: inline-flex; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  margin-bottom: 1.1rem;
}
.edu-art-title {
  margin: 0 0 .75rem;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
}
.edu-art-title span {
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu-art-sub {
  margin: 0 0 1.25rem; font-size: .92rem; line-height: 1.55;
  color: rgba(255,255,255,.9); max-width: 36ch;
}
.edu-illus { flex: 1; display: flex; align-items: flex-end; min-height: 200px; margin: .5rem 0 1rem; }
.edu-illus-scene {
  position: relative; width: 100%; height: 200px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.edu-sun {
  position: absolute; top: 18px; right: 28px;
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b);
  box-shadow: 0 0 30px rgba(251,191,36,.55);
  animation: edu-sun-pulse 6s ease-in-out infinite;
}
@keyframes edu-sun-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.edu-cloud {
  position: absolute; background: rgba(255,255,255,.85);
  border-radius: 40px; animation: edu-cloud-x 18s linear infinite;
}
.edu-cloud.cl1 { width: 70px; height: 22px; top: 28px; left: 20px; opacity: .7; }
.edu-cloud.cl2 { width: 50px; height: 16px; top: 48px; left: 90px; opacity: .55; animation-duration: 24s; animation-delay: -6s; }
@keyframes edu-cloud-x { 0% { transform: translateX(0); } 100% { transform: translateX(40px); } }
.edu-building { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 110px; }
.edu-roof {
  height: 0; border-left: 58px solid transparent; border-right: 58px solid transparent;
  border-bottom: 36px solid #312e81; margin: 0 auto; width: 0;
}
.edu-body {
  position: relative; height: 88px; margin: 0 8px;
  background: linear-gradient(180deg, #e0e7ff, #c7d2fe);
  border-radius: 0 0 8px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 28px;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.edu-body .win {
  background: #6366f1; border-radius: 4px;
  animation: edu-win 3.5s ease-in-out infinite;
}
.edu-body .win:nth-child(2) { animation-delay: -.8s; }
.edu-body .win:nth-child(3) { animation-delay: -1.6s; }
.edu-body .win:nth-child(4) { animation-delay: -2.4s; }
@keyframes edu-win { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.edu-body .door {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 28px; background: #4338ca; border-radius: 6px 6px 0 0;
}
.edu-tree {
  position: absolute; bottom: 18px; width: 0; height: 0;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-bottom: 48px solid #34d399;
}
.edu-tree.t1 { left: 18%; }
.edu-tree.t2 { right: 16%; border-bottom-color: #10b981; transform: scale(.85); }
.edu-tree::after {
  content: ""; position: absolute; left: -3px; top: 48px;
  width: 6px; height: 14px; background: #78716c;
}
.edu-person {
  position: absolute; bottom: 18px; width: 14px;
  animation: edu-walk 7s ease-in-out infinite;
}
.edu-person::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 2px;
  border-radius: 50%; background: #fde68a;
}
.edu-person::after {
  content: ""; display: block; width: 14px; height: 22px;
  border-radius: 6px 6px 4px 4px; background: #f472b6;
}
.edu-person.p1 { left: 28%; }
.edu-person.p2 { left: 62%; animation-delay: -3.5s; }
.edu-person.p2::after { background: #60a5fa; }
@keyframes edu-walk { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
.edu-book-stack {
  position: absolute; right: 22px; bottom: 22px;
  display: flex; flex-direction: column; gap: 3px;
  animation: edu-float-y 5s ease-in-out infinite;
}
.edu-book-stack span { display: block; height: 8px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.edu-book-stack span:nth-child(1) { width: 36px; background: #f472b6; }
.edu-book-stack span:nth-child(2) { width: 42px; background: #818cf8; }
.edu-book-stack span:nth-child(3) { width: 30px; background: #2dd4bf; }
@keyframes edu-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.edu-art-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
  margin-top: auto;
}
.edu-art-stats div {
  padding: .65rem .5rem; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14);
}
.edu-art-stats strong { display: block; font-size: .78rem; margin-bottom: .15rem; }
.edu-art-stats span { font-size: .68rem; opacity: .85; }
.edu-auth-form {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.edu-auth-card { width: 100%; max-width: 360px; }
.edu-auth-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.35rem; }
.edu-auth-logo { height: 48px; width: auto; max-width: 48px; object-fit: contain; border-radius: 12px; }
.edu-auth-mark {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 10px 24px rgba(99,102,241,.35);
}
.edu-auth-brand h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #1e1b4b; }
.edu-auth-brand p { margin: .2rem 0 0; font-size: .84rem; color: var(--edu-muted); }
.edu-auth-lbl {
  display: block; font-size: .74rem; font-weight: 700; color: #475569;
  margin: .85rem 0 .35rem;
}
.edu-auth-field {
  display: flex; align-items: center; gap: .45rem;
  border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: .1rem .85rem; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.edu-auth-field:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
  transform: translateY(-1px);
}
.edu-auth-ico { opacity: .55; }
.edu-auth-field input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: .72rem 0; font-size: .95rem; color: var(--edu-ink); min-width: 0;
}
.edu-auth-eye {
  border: none; background: #f1f5f9; color: #475569;
  font-size: .72rem; font-weight: 700; padding: .3rem .55rem;
  border-radius: 8px; cursor: pointer;
}
.edu-auth-btn {
  width: 100%; margin-top: 1.2rem; border: none; border-radius: 14px;
  padding: .9rem 1rem; font-size: .95rem; font-weight: 800; color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 180% 180%;
  box-shadow: 0 14px 32px rgba(99,102,241,.35);
  animation: edu-btn-shift 8s ease infinite;
  transition: transform .12s, filter .12s;
}
.edu-auth-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
.edu-auth-btn:disabled { opacity: .72; cursor: wait; }
@keyframes edu-btn-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.edu-auth-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: edu-spin .7s linear infinite; display: inline-block;
}
@keyframes edu-spin { to { transform: rotate(360deg); } }
.edu-auth-foot {
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; justify-content: center;
  margin-top: 1.15rem; font-size: .8rem; color: var(--edu-muted);
}
.edu-auth-foot a { color: #4f46e5; text-decoration: none; font-weight: 600; }
.edu-auth-foot a:hover { text-decoration: underline; }
.edu-auth-chip {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 12px; margin-bottom: .15rem;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  border: 1px solid #c7d2fe; color: #312e81; font-size: .85rem;
}
.edu-auth-chip button {
  margin-left: auto; border: none; background: #fff; color: #6366f1;
  font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 8px; cursor: pointer;
}
@media (max-width: 900px) {
  .edu-auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .edu-auth-art { padding: 1.5rem 1.35rem 1.25rem; }
  .edu-illus { min-height: 140px; }
  .edu-illus-scene { height: 140px; }
  .edu-art-stats { display: none; }
}
@media (max-width: 480px) {
  .edu-auth { padding: .75rem; }
  .edu-auth-shell { border-radius: 20px; }
  .edu-auth-form { padding: 1.35rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .edu-blob, .edu-sun, .edu-cloud, .edu-body .win, .edu-person, .edu-book-stack, .edu-auth-btn { animation: none !important; }
}
