:root {
  --allfex-blue: #0b2542;
  --allfex-blue-deep: #061526;
  --allfex-orange: #f28c28;
  --allfex-cream: #fff6eb;
  --allfex-text: #19324a;
  --allfex-muted: #6d7d8d;
  --allfex-border: rgba(11, 37, 66, 0.12);
  --allfex-shadow: 0 24px 64px rgba(6, 21, 38, 0.16);
  --allfex-radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--allfex-text);
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.24), transparent 28%),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.1), transparent 20%),
    linear-gradient(135deg, #071425 0%, #10335a 48%, #0b2542 100%);
}

.background-glow {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.65;
  pointer-events: none;
}

.glow-one {
  top: 6%;
  left: -6%;
  width: 280px;
  height: 280px;
  background: rgba(242, 140, 40, 0.28);
}

.glow-two {
  right: -8%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.12);
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.login-shell {
  max-width: 1160px;
  width: 100%;
  max-height: 94vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--allfex-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--allfex-shadow);
  backdrop-filter: blur(18px);
}

.login-shell--request {
  max-height: none;
  min-height: 80vh;
}

.login-shell--request .brand-panel {
  justify-content: flex-start;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(12, 44, 80, 0.92) 0%, rgba(6, 21, 38, 0.94) 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(242, 140, 40, 0.08), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(242, 140, 40, 0.18), transparent 18%);
  pointer-events: none;
}

.brand-panel>* {
  position: relative;
  z-index: 1;
}

.brand-badge,
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-badge {
  color: #f4f9ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-box {
  width: fit-content;
  max-width: min(100%, 320px);
  padding: 0.95rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 40px rgba(3, 12, 24, 0.24);
}

.brand-logo {
  width: 100%;
  display: block;
}

.small-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.68);
}

.brand-title {
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  line-height: 1.05;
}

.brand-copy {
  max-width: 31rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.feature-card,
.status-card,
.support-box {
  border-radius: 20px;
}

.feature-card {
  height: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 140, 40, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  color: var(--allfex-orange);
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
}

.feature-card h2 {
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(242, 140, 40, 0.22);
}

.status-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.62);
}

.status-card strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.45;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--allfex-orange), #ffb86c);
  font-size: 1.05rem;
}

.form-panel {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(244, 247, 251, 0.98) 100%);
}

.security-badge {
  color: var(--allfex-blue);
  background: rgba(11, 37, 66, 0.08);
  border: 1px solid rgba(11, 37, 66, 0.08);
}

.form-title {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--allfex-blue);
}

.audience-pill {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--allfex-blue);
  background: #ffffff;
  border: 1px solid rgba(11, 37, 66, 0.08);
  box-shadow: 0 10px 24px rgba(11, 37, 66, 0.06);
}

.form-label {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--allfex-blue);
}

.input-shell {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  font-size: 0.92rem;
  color: #7c8b9a;
  pointer-events: none;
}

.form-control {
  min-height: 54px;
  padding-left: 2.7rem;
  border: 1px solid var(--allfex-border);
  border-radius: 16px;
  font-size: 0.95rem;
  color: var(--allfex-text);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(11, 37, 66, 0.04);
}

.form-control::placeholder {
  color: #9aa7b3;
}

.form-control:focus {
  border-color: rgba(242, 140, 40, 0.55);
  box-shadow: 0 0 0 0.28rem rgba(242, 140, 40, 0.16);
}

.password-shell .form-control {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #5b6978;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--allfex-blue);
  background: rgba(11, 37, 66, 0.08);
  outline: none;
}

.form-check-input:checked {
  background-color: var(--allfex-orange);
  border-color: var(--allfex-orange);
}

.helper-link {
  font-weight: 700;
  color: var(--allfex-blue);
  text-decoration: none;
}

.helper-link:hover {
  color: var(--allfex-orange);
}

.form-check-label,
.helper-link,
.small {
  font-size: 0.86rem;
}

.btn-login,
.btn-outline-access {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #f28c28, #f7a74b);
  box-shadow: 0 18px 32px rgba(242, 140, 40, 0.28);
}

.btn-login:hover,
.btn-login:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #e77c14, #f19734);
}

.btn-outline-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--allfex-blue);
  background: #ffffff;
  border: 1px solid rgba(11, 37, 66, 0.12);
}

.btn-outline-access:hover,
.btn-outline-access:focus {
  color: var(--allfex-blue);
  background: rgba(11, 37, 66, 0.04);
  border-color: rgba(11, 37, 66, 0.2);
}

.divider {
  position: relative;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(11, 37, 66, 0.12);
}

.divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 1rem;
  color: var(--allfex-muted);
  background: #f7f9fc;
}

.recovery-note,
.steps-card {
  border-radius: 20px;
}

.recovery-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.14), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(242, 140, 40, 0.2);
  box-shadow: 0 14px 28px rgba(11, 37, 66, 0.05);
}

.note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--allfex-orange), #ffb86c);
  font-size: 1rem;
}

.recovery-note p {
  font-size: 0.9rem;
  line-height: 1.45;
}

/* steps card becomes an overlay: hidden by default and centered when visible */
.steps-card {
  display: none; /* hidden until triggered */
  position: absolute; /* centered relative to body */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  z-index: 1060;
  width: min(720px, 92%);
  max-height: min(80vh, 900px);
  overflow: auto;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(11, 37, 66, 0.08);
  box-shadow: 0 30px 80px rgba(3, 12, 24, 0.48);
  border-radius: 20px;
  transition: opacity 220ms ease, transform 220ms ease;
  opacity: 0;
}

.steps-card.visible {
  display: block !important;
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* backdrop behind the overlay: semi-opaque black to dim underlying content */
.steps-backdrop {
  display: none;
  position: fixed; /* cover full viewport */
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  transition: opacity 220ms ease;
  opacity: 0;
}

.steps-backdrop.visible {
  display: block;
  opacity: 1;
}

.steps-title {
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--allfex-muted);
}

.step-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--allfex-blue);
  background: rgba(11, 37, 66, 0.08);
}

.step-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--allfex-text);
}

.step-text strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--allfex-blue);
}

.support-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(11, 37, 66, 0.08);
  box-shadow: 0 14px 28px rgba(11, 37, 66, 0.05);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 15px;
  color: var(--allfex-orange);
  background: var(--allfex-cream);
  font-size: 1rem;
}

.support-box p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.preview-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  color: var(--allfex-blue);
  text-decoration: none;
  background: rgba(11, 37, 66, 0.04);
  border: 1px solid rgba(11, 37, 66, 0.08);
  box-shadow: 0 14px 28px rgba(11, 37, 66, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.preview-link:hover {
  transform: translateY(-2px);
  color: var(--allfex-blue);
  background: rgba(11, 37, 66, 0.06);
  border-color: rgba(242, 140, 40, 0.26);
}

.preview-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--allfex-blue), #1b4f86);
  box-shadow: 0 16px 24px rgba(11, 37, 66, 0.16);
}

.preview-link-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.preview-link-copy strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.preview-link-copy small {
  color: var(--allfex-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-shell,
.logo-box,
.feature-card,
.status-card,
.form-panel,
.recovery-note,
.steps-card,
.support-box,
.preview-link,
.audience-pill {
    animation: rise-in 0.8s ease both;
}

@media (max-width: 991.98px) {
  .login-shell {
    min-height: auto;
  }

  .brand-panel,
  .form-panel {
    padding: 1.5rem 1.1rem !important;
  }

  .brand-copy {
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(242, 140, 40, 0.22), transparent 36%),
      linear-gradient(180deg, #071425 0%, #10335a 50%, #0b2542 100%);
  }

  .login-shell {
    border-radius: 24px;
  }

  .logo-box {
    max-width: min(100%, 280px);
    padding: 0.85rem 0.95rem;
  }

  .feature-card,
  .status-card,
  .recovery-note,
  .steps-card,
  .support-box {
    border-radius: 18px;
  }

  .status-card {
    align-items: flex-start;
  }
}

/* Modal and feedback styles */
.app-feedback {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
