:root {
  --blue-950: #123a63;
  --blue-900: #1d5f98;
  --blue-700: #287fbd;
  --blue-500: #5eb5e8;
  --blue-100: #e4f4ff;
  --ink: #17233b;
  --muted: #65758b;
  --line: #dce8f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}
.login-showcase {
  background: linear-gradient(145deg, #123a63, #236fa8 58%, #60b7e4);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.showcase-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent);
  position: absolute;
}
.orb {
  border-radius: 50%;
  filter: blur(1px);
  position: absolute;
}
.orb-one {
  animation: floatOne 8s ease-in-out infinite;
  background: rgba(154, 220, 248, 0.24);
  height: 320px;
  right: -80px;
  top: -65px;
  width: 320px;
}
.orb-two {
  animation: floatTwo 10s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.11);
  bottom: -120px;
  height: 380px;
  left: -100px;
  width: 380px;
}
.showcase-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 3rem 4.5rem;
  position: relative;
  z-index: 1;
}
.login-brand,
.mobile-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-emblem {
  background: linear-gradient(145deg, #fff, #dff3ff);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  color: var(--blue-900);
  display: grid;
  font-size: 1.4rem;
  font-weight: 900;
  height: 48px;
  place-items: center;
  width: 48px;
  overflow: hidden;
  padding: 3px;
}
.brand-emblem img {
  border-radius: 11px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.login-brand strong,
.mobile-brand strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}
.login-brand small,
.mobile-brand small {
  display: block;
  opacity: 0.72;
}
.showcase-copy {
  margin: auto 0;
  max-width: 650px;
}
.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}
.showcase-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 1.4rem 0;
}
.showcase-copy > p {
  color: #dff3ff;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 580px;
}
.feature-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
}
.feature-row > div {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
}
.feature-row i {
  font-size: 1.4rem;
}
.feature-row strong,
.feature-row small {
  display: block;
}
.feature-row small {
  color: #dff3ff;
  margin-top: 0.15rem;
}
.showcase-footer {
  align-items: center;
  color: #e7f7ff;
  display: flex;
  font-size: 0.86rem;
  gap: 0.55rem;
}
.live-dot {
  background: #b7f0ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(183, 240, 255, 0.12);
  height: 8px;
  width: 8px;
}
.login-panel {
  align-items: center;
  background: linear-gradient(145deg, #f8fcff, #eff8fd);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  animation: cardIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background: #fff;
  border: 1px solid rgba(220, 232, 242, 0.8);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(18, 58, 99, 0.11);
  max-width: 510px;
  padding: clamp(1.6rem, 4vw, 3rem);
  width: 100%;
}
.mobile-brand {
  color: var(--blue-900);
  display: none;
  margin-bottom: 2rem;
}
.welcome-icon {
  background: var(--blue-100);
  border-radius: 12px;
  color: var(--blue-700);
  display: grid;
  font-size: 1.2rem;
  height: 42px;
  place-items: center;
  width: 42px;
}
.form-heading h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 1rem 0 0.35rem;
}
.form-heading p {
  color: var(--muted);
  margin: 0 0 1.7rem;
}
.login-alert {
  align-items: flex-start;
  background: #fff2f2;
  border: 1px solid #ffd5d5;
  border-radius: 12px;
  color: #a52a2a;
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding: 0.85rem;
}
.account-switch {
  border: 0;
  margin: 0 0 1.3rem;
  padding: 0;
}
.account-switch legend,
.field-group label {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.switch-options {
  background: #edf4f8;
  border-radius: 12px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.35rem;
}
.switch-options input {
  position: absolute;
  opacity: 0;
}
.switch-options span {
  align-items: center;
  border-radius: 9px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  font-weight: 750;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.7rem;
  transition: 0.2s;
}
.switch-options input:checked + span {
  background: #fff;
  box-shadow: 0 5px 15px rgba(18, 58, 99, 0.09);
  color: var(--blue-900);
}
.field-group {
  margin-bottom: 1.15rem;
}
.label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.security-note {
  color: #7990a5;
  font-size: 0.73rem;
}
.input-shell {
  align-items: center;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  min-height: 50px;
  padding: 0 0.9rem;
  transition: 0.2s;
}
.input-shell:focus-within {
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(94, 181, 232, 0.14);
}
.input-shell > i {
  color: #8aa2b5;
}
.input-shell input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  outline: 0;
  padding: 0.85rem;
  width: 100%;
}
.password-toggle {
  background: transparent;
  border: 0;
  color: #698198;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
}
.sign-in-button {
  align-items: center;
  background: linear-gradient(120deg, var(--blue-900), #3d9ed2);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(29, 95, 152, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 52px;
  padding: 0 1.2rem;
  position: relative;
  transition: 0.2s;
  width: 100%;
}
.sign-in-button i {
  position: absolute;
  right: 1.2rem;
  transition: transform 0.2s;
}
.sign-in-button:hover {
  box-shadow: 0 15px 28px rgba(29, 95, 152, 0.3);
  transform: translateY(-2px);
}
.sign-in-button:hover i {
  transform: translateX(3px);
}
.sign-in-button.loading {
  cursor: wait;
  opacity: 0.8;
}
.help-text {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 1.3rem 0 0;
  text-align: center;
}
.login-panel footer {
  align-items: center;
  color: #8aa0b4;
  display: flex;
  font-size: 0.75rem;
  gap: 12px;
  justify-content: space-between;
  margin-top: 1.3rem;
}
.login-panel footer a {
  align-items: center;
  color: var(--blue-700);
  display: inline-flex;
  font-weight: 800;
  gap: 5px;
  text-decoration: none;
}
.shake {
  animation: shake 0.35s ease;
}
.field-error {
  border-color: #e57373 !important;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes floatOne {
  50% {
    transform: translate(-20px, 25px);
  }
}
@keyframes floatTwo {
  50% {
    transform: translate(25px, -20px);
  }
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}
@media (max-width: 950px) {
  .login-page {
    display: block;
  }
  .login-showcase {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 1.2rem;
  }
  .mobile-brand {
    display: flex;
  }
  .login-card {
    padding: 2rem;
  }
  .login-panel footer {
    text-align: center;
  }
}
@media (max-width: 520px) {
  .login-card {
    border-radius: 18px;
    padding: 1.4rem;
  }
  .feature-row {
    display: block;
  }
  .form-heading h2 {
    font-size: 1.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
