@charset "utf-8";

:root {
  --portal-login-navy: #071f48;
  --portal-login-blue: #0b3b78;
  --portal-login-sky: #05baee;
  --portal-login-ink: #12345f;
  --portal-login-muted: #6d7f98;
  --portal-login-line: #d8e5f2;
}

body.portal-login-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: clamp(12px, 2.3vw, 34px);
  overflow-x: hidden;
  background-color: #e8eff7;
  background-image:
    radial-gradient(circle at 5% 0%, rgba(5, 186, 238, 0.12), transparent 27%),
    linear-gradient(180deg, #edf3f9 0%, #e4ecf5 100%);
  color: #fff;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
}

.portal-login-page,
.portal-login-page * {
  box-sizing: border-box;
}

.portal-login-page {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.portal-login-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - clamp(24px, 4.6vw, 68px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 86% 10%, rgba(5, 186, 238, 0.27), transparent 28%),
    linear-gradient(130deg, var(--portal-login-navy) 0%, #0b336c 52%, #0a75a8 100%);
  box-shadow: 0 30px 80px rgba(7, 35, 76, 0.25);
}

.portal-login-hero::before,
.portal-login-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.portal-login-hero::before {
  top: -250px;
  right: -115px;
  width: 540px;
  height: 540px;
  border: 76px solid rgba(5, 186, 238, 0.12);
}

.portal-login-hero::after {
  bottom: -360px;
  left: 26%;
  width: 650px;
  height: 650px;
  background: rgba(43, 99, 176, 0.2);
}

.portal-login-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.2rem, 3.7vw, 3.2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
}

.portal-login-brand:hover,
.portal-login-brand:focus-visible {
  color: #fff;
  text-decoration: none;
}

.portal-login-brand:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(99, 214, 246, 0.45);
  outline-offset: 4px;
}

.portal-login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 19, 48, 0.2);
}

.portal-login-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-login-brand-copy strong,
.portal-login-brand-copy small {
  display: block;
}

.portal-login-brand-copy strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.2;
}

.portal-login-brand-copy small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.portal-login-context {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.portal-login-context i {
  color: #66d8f7;
}

.portal-login-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: calc(100vh - 190px);
  padding: clamp(2.7rem, 6vw, 5.6rem) clamp(1.2rem, 5vw, 4.8rem);
}

.portal-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #78dcfb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-login-kicker i {
  font-size: 0.68rem;
}

.portal-login-copy h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.portal-login-copy > p {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.94rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.portal-login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.55rem;
}

.portal-login-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-weight: 600;
}

.portal-login-benefits i {
  color: #63d6f6;
}

.portal-auth-card {
  width: 100%;
  max-width: 465px;
  justify-self: end;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--portal-login-ink);
  box-shadow: 0 28px 65px rgba(2, 18, 46, 0.28);
  backdrop-filter: blur(18px);
}

.portal-auth-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #e2ebf4;
}

.portal-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: #e9f9fe;
  color: #087fae;
  font-size: 1.05rem;
}

.portal-auth-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: #087fae;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-auth-heading h2 {
  margin: 0;
  color: #113662;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.portal-auth-intro {
  margin: 1rem 0 1.15rem;
  color: var(--portal-login-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.portal-auth-form,
.portal-auth-form .form__group,
.portal-auth-form .form-group {
  margin: 0;
  padding: 0;
}

.portal-auth-fields {
  display: grid;
  gap: 0.95rem;
}

.portal-auth-field {
  display: block;
  min-width: 0;
}

.portal-auth-form label,
.portal-auth-label {
  display: block;
  margin: 0 0 0.45rem;
  color: #526984;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.portal-auth-form input[type="email"],
.portal-auth-form input[type="text"],
.portal-auth-form input[type="password"] {
  display: block;
  width: 100%;
  height: 3.25rem;
  margin: 0;
  padding: 0 0.95rem;
  border: 1px solid #cfdeed;
  border-radius: 12px;
  background: #f8fbfe;
  box-shadow: none;
  color: #17375e;
  cursor: text;
  font: inherit;
  font-size: 0.86rem;
  line-height: 3.25rem;
  text-align: left;
  user-select: text;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portal-auth-form input::placeholder {
  color: #94a5b9;
  opacity: 1;
}

.portal-auth-form input:focus {
  border-color: var(--portal-login-sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 186, 238, 0.13);
  outline: none;
}

.portal-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-auth-form .form__email {
  width: 100%;
  margin: 0 0 1rem;
}

.portal-auth-form .form__email > input {
  float: none;
  height: 3.25rem;
  margin: 0;
  border: 1px solid #cfdeed;
  border-radius: 12px;
  line-height: 3.25rem;
  text-align: left;
}

.portal-auth-form .form__pincode {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin: 0;
}

.portal-auth-form .form__pincode > label {
  grid-column: 1 / -1;
}

.portal-auth-form .form__pincode::before,
.portal-auth-form .form__pincode::after {
  display: none;
}

.portal-auth-form .form__pincode > input {
  float: none;
  width: 100%;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid #cfdeed;
  border-radius: 11px;
  background: #f8fbfe;
  color: #17375e;
  cursor: text;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 3.25rem;
  text-align: center;
  user-select: text;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portal-auth-form .form__pincode > input:focus {
  border-color: var(--portal-login-sky);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 186, 238, 0.13);
  animation: none;
  outline: none;
}

.portal-auth-form .form__pincode > input:last-child {
  margin-right: 0;
}

.portal-auth-form .form__group--success.form__pincode > input,
.portal-auth-form .form__group--success.form__pincode > input[disabled] {
  border-color: #2db879;
  background: #edfbf4;
  color: #16724d;
}

.portal-auth-form .form__group--error.form__pincode > input,
.portal-auth-form .form__group--error.form__pincode > input[disabled] {
  border-color: #e05b64;
  background: #fff1f2;
  color: #a92f3b;
}

.portal-auth-actions,
.portal-auth-form .form__buttons {
  margin: 1.15rem 0 0;
  padding: 0;
  text-align: center;
}

.portal-auth-submit,
.portal-auth-form .button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #0c70a6;
  border-radius: 12px;
  background: linear-gradient(135deg, #164193 0%, #087fae 100%);
  box-shadow: 0 12px 24px rgba(22, 65, 147, 0.2);
  color: #fff;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.portal-auth-submit:hover,
.portal-auth-submit:focus-visible,
.portal-auth-form .button--primary:hover,
.portal-auth-form .button--primary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #164193 0%, #087fae 100%);
  box-shadow: 0 16px 28px rgba(22, 65, 147, 0.27);
  color: #fff;
  filter: brightness(1.04);
  outline: none;
}

.portal-auth-form .button--primary[disabled] {
  border-color: #b7c7d8;
  background: #dce6ef;
  box-shadow: none;
  color: #8394a8;
  cursor: not-allowed;
  opacity: 1;
}

.portal-auth-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #e2ebf4;
  color: #7d8fa4;
  font-size: 0.65rem;
  line-height: 1.5;
}

.portal-auth-note i {
  margin-top: 0.14rem;
  color: #0b91bd;
}

.portal-login-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: none;
}

.portal-login-back:hover,
.portal-login-back:focus-visible {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-login-hero {
    min-height: auto;
  }

  .portal-login-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .portal-auth-card {
    max-width: 620px;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body.portal-login-body {
    padding: 0;
  }

  .portal-login-hero {
    border: 0;
    border-radius: 0;
  }

  .portal-login-context {
    display: none;
  }

  .portal-login-content {
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .portal-login-copy h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .portal-auth-card {
    border-radius: 20px;
  }

  .portal-auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .portal-login-brand-copy small {
    display: none;
  }

  .portal-auth-form .form__pincode {
    gap: 0.3rem;
  }

  .portal-auth-form .form__pincode > input {
    height: 2.9rem;
    border-radius: 9px;
    font-size: 1.15rem;
    line-height: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-auth-submit,
  .portal-auth-form .button--primary,
  .portal-auth-form input {
    transition: none;
  }
}
