/* =========================
   LOGIN SCREEN
========================= */

.ie-login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top, rgba(0, 224, 255, 0.08), transparent 35%),
    linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
}

.ie-login-shell {
  width: 100%;
  max-width: 720px;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.75rem 0 1rem;
  box-sizing: border-box;
}

/* =========================
   PANEL
========================= */

.ie-login-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(0, 224, 255, 0.16);
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(16, 20, 39, 0.94));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(0, 224, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: ieLoginFadeIn 0.4s ease;
}

.ie-login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 224, 255, 0.09), transparent 28%),
    radial-gradient(circle at bottom left, rgba(0, 128, 255, 0.07), transparent 24%);
  pointer-events: none;
}

/* =========================
   STACKING CONTEXT
========================= */

.ie-login-kicker,
.ie-login-logo,
.ie-login-title-fallback,
.ie-login-title,
.ie-login-module,
.ie-login-footer {
  position: relative;
  z-index: 1;
}

/* =========================
   HEADER
========================= */

.ie-login-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.24);
  background: rgba(0, 224, 255, 0.08);
  color: #9befff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ie-login-logo {
  display: block;
  max-width: min(100%, 430px);
  height: auto;
  margin-bottom: 0.7rem;
}

.ie-login-title-fallback {
  display: none;
  margin: 0 0 0.7rem;
  color: #00e0ff;
  font-size: 1.9rem;
  font-weight: 800;
}

.ie-login-title {
  margin: 0 0 1.15rem;
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

/* =========================
   ACCESS MODULE
========================= */

.ie-login-module {
  margin-bottom: 0.9rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.ie-login-module-label {
  margin-bottom: 0.75rem;
  color: #9aa8bd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   OAUTH BUTTONS
========================= */

.ie-oauth-buttons {
  display: grid;
  gap: 0.7rem;
}

.ie-oauth-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ie-oauth-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.ie-oauth-btn:active {
  transform: translateY(0);
}

.ie-oauth-provider-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ie-oauth-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ie-oauth-svg--github {
  color: #111111;
}

.ie-oauth-svg--google {
  width: 18px;
  height: 18px;
}

.ie-oauth-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ie-oauth-copy strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.ie-oauth-copy small {
  color: #98a7bc;
  font-size: 0.8rem;
  line-height: 1.25;
}

/* =========================
   HINT / FOOTER
========================= */

.ie-login-hint {
  min-height: 1.1rem;
  margin-top: 0.8rem;
  color: #8d9ab0;
  font-size: 0.84rem;
}

.ie-login-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: #8ea1bb;
  font-size: 0.82rem;
}

.ie-login-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ie-login-footer-item i {
  color: #00e0ff;
}

/* =========================
   ANIMATION
========================= */

@keyframes ieLoginFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .ie-login-screen {
    padding: 0.9rem;
  }

  .ie-login-shell {
    padding: 0.35rem 0 0.9rem;
  }

  .ie-login-panel {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .ie-login-logo {
    max-width: min(100%, 380px);
    margin-bottom: 0.6rem;
  }

  .ie-login-title {
    max-width: none;
    margin-bottom: 1rem;
    font-size: 1.9rem;
  }

  .ie-oauth-btn {
    padding: 0.82rem 0.9rem;
  }

  .ie-oauth-provider-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}

@media (max-width: 480px) {
  .ie-login-screen {
    padding: 0.75rem;
  }

  .ie-login-shell {
    padding: 0.2rem 0 0.85rem;
  }

  .ie-login-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .ie-login-title {
    font-size: 1.72rem;
    line-height: 1.02;
  }

  .ie-login-footer {
    flex-direction: column;
    gap: 0.6rem;
  }
}
