/* E-EDUCATION — standalone login (Ujuzi glass aesthetic) */

.ud-auth-standalone {
  min-height: 100vh;
  margin: 0;
  color: #f8fafc;
  background: #0b1220;
}

.ud-auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ud-auth-stage__bg {
  position: absolute;
  inset: 0;
  background-image: var(--auth-hero);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.ud-auth-stage__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 30%, rgba(5, 150, 105, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(124, 58, 237, 0.28), transparent 50%),
    linear-gradient(160deg, rgba(3, 7, 18, 0.72) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(2, 6, 23, 0.85) 100%);
}

.ud-auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.ud-auth-topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.ud-auth-topbar__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.ud-auth-topbar__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ud-auth-topbar__theme {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ud-auth-topbar__home {
  font-size: 0.88rem;
  font-weight: 600;
  color: #a7f3d0;
  text-decoration: none;
}

.ud-auth-topbar__home:hover { color: #fff; text-decoration: underline; }

.ud-auth-standalone .ud-lang-switch,
.ud-auth-standalone .ud-guide-btn {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(15, 23, 42, 0.35) !important;
  color: #e2e8f0 !important;
  backdrop-filter: blur(8px);
}

.ud-auth-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 2.5rem;
}

.ud-auth-card--glass {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.6rem;
  border-radius: 28px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.ud-auth-card__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.ud-auth-card__logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.28);
}

.ud-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-auth-tab {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.7);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ud-auth-tab.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ud-auth-card__title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.ud-auth-card__subtitle {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.72);
  margin: 0 0 1.35rem;
  line-height: 1.5;
  text-align: center;
}

.ud-auth-form { display: grid; gap: 0.85rem; }

.ud-auth-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ud-auth-field__icon {
  position: absolute;
  left: 0.95rem;
  color: rgba(148, 163, 184, 0.95);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.ud-auth-field__input {
  width: 100%;
  height: 50px;
  padding: 0 2.75rem 0 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  font-size: 0.95rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ud-auth-field__input::placeholder { color: rgba(148, 163, 184, 0.9); }

.ud-auth-field__input:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: rgba(15, 23, 42, 0.65);
}

.ud-auth-field__select {
  appearance: none;
  cursor: pointer;
}

.ud-auth-field__select option {
  color: #0f172a;
  background: #fff;
}

.ud-auth-field__toggle {
  position: absolute;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  cursor: pointer;
}

.ud-auth-field__toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ud-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ud-auth-row--forgot { justify-content: flex-end; margin-top: -0.2rem; margin-bottom: 0.15rem; }

.ud-auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.82);
  cursor: pointer;
  line-height: 1.45;
}

.ud-auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  accent-color: #10b981;
  flex-shrink: 0;
}

.ud-auth-check a {
  color: #6ee7b7;
  font-weight: 700;
  text-decoration: none;
}

.ud-auth-check a:hover { text-decoration: underline; }

.ud-auth-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
}

.ud-auth-link:hover { color: #6ee7b7; text-decoration: underline; }

.ud-auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 0.15rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 55%, #0f766e 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.ud-auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.ud-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem 0;
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
}

.ud-auth-divider::before,
.ud-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.ud-auth-google {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: none;
  background: #fff;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ud-auth-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  color: #111827;
}

.ud-auth-google--top { margin-bottom: 0.25rem; }

.ud-auth-google__icon { flex-shrink: 0; }

.ud-auth-google-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fbbf24;
  text-align: center;
}

.ud-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.ud-auth-alert--error {
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.ud-auth-switch-hint {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.45;
}

.ud-auth-switch-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  margin-left: 0.25rem;
}

.ud-auth-switch-link--accent {
  color: #34d399;
  font-weight: 800;
}

.ud-auth-switch-link--accent:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .ud-auth-card--glass {
    padding: 1.5rem 1.15rem 1.25rem;
    border-radius: 22px;
  }

  .ud-auth-card__title { font-size: 1.45rem; }

  .ud-auth-topbar__home { display: none; }
}
