:root {
  color-scheme: light;
  --forest: #173e35;
  --forest-light: #24584b;
  --gold: #d5a85f;
  --ink: #1e2b27;
  --muted: #77817b;
  --paper: #f6f4ee;
  --white: #fffefa;
  --line: #e4e6dc;
  --danger: #a6382d;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 32px;
  place-items: center;
  background:
    radial-gradient(ellipse at 85% 12%, rgba(224, 211, 184, .34), transparent 35%),
    var(--paper);
  color: var(--ink);
}

button,
input { font: inherit; }
button { cursor: pointer; }

.login-shell {
  display: grid;
  width: min(100%, 1100px);
  min-height: 660px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(23, 62, 53, .08);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(32, 51, 42, .14);
  animation: shell-enter .65s cubic-bezier(.2, .75, .25, 1) both;
}

.login-story {
  position: relative;
  display: flex;
  min-height: 660px;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 44px 30px;
  background:
    radial-gradient(ellipse at 78% 84%, rgba(52, 111, 91, .36), transparent 40%),
    linear-gradient(145deg, #173e35 0%, #12342e 100%);
  color: #fffefa;
}

.story-glow {
  position: absolute;
  top: -145px;
  right: -110px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(213, 168, 95, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(213, 168, 95, .035), 0 0 0 75px rgba(213, 168, 95, .025);
  pointer-events: none;
}

.brand,
.mobile-brand {
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-decoration: none;
}

.brand img,
.mobile-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.story-copy {
  z-index: 1;
  margin-top: 90px;
  animation: copy-enter .75s .12s both;
}

.story-eyebrow,
.card-eyebrow {
  margin: 0 0 17px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.story-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.story-copy h1 em {
  color: #e0bd7e;
  font-weight: 400;
}

.story-description {
  max-width: 370px;
  margin: 21px 0 0;
  color: rgba(255, 254, 250, .72);
  font-size: .94rem;
  line-height: 1.75;
}

.service-orbit {
  position: absolute;
  right: 45px;
  bottom: 68px;
  width: 265px;
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224, 189, 126, .23);
  border-radius: 50%;
}

.orbit-ring-one {
  animation: orbit-breathe 6s ease-in-out infinite;
}

.orbit-ring-two {
  inset: 32px;
  border-color: rgba(224, 189, 126, .34);
  animation: orbit-breathe 6s 1s ease-in-out infinite;
}

.orbit-core {
  position: absolute;
  inset: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 189, 126, .45);
  border-radius: 50%;
  background: rgba(255, 254, 250, .08);
  box-shadow: 0 0 40px rgba(0, 0, 0, .12);
}

.orbit-core img { width: 82px; border-radius: 22px; }

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #173e35;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 168, 95, .14);
}

.orbit-dot-one { top: 28px; left: 61px; }
.orbit-dot-two { top: 83px; right: 7px; width: 7px; height: 7px; }
.orbit-dot-three { bottom: 17px; left: 95px; width: 6px; height: 6px; }

.story-footer {
  z-index: 1;
  margin: auto 0 0;
  color: rgba(255, 254, 250, .58);
  font-size: .76rem;
  letter-spacing: .04em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 74px) 28px;
}

.login-card {
  width: min(100%, 380px);
  animation: card-enter .65s .08s both;
}

.mobile-brand { display: none; }

.card-eyebrow {
  margin-bottom: 12px;
  color: #9d7537;
}

.login-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.card-description {
  margin: 13px 0 31px;
  color: var(--muted);
  font-size: .91rem;
}

.login-card form > label,
.password-label-row label {
  color: #37443e;
  font-size: .79rem;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  height: 53px;
  align-items: center;
  gap: 11px;
  margin: 8px 0 21px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input-wrap:focus-within {
  transform: translateY(-1px);
  border-color: #6c9787;
  box-shadow: 0 0 0 4px rgba(54, 111, 88, .1);
}

.input-wrap > svg,
.security-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #87928a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
}

.input-wrap input::placeholder { color: #a2aaa4; }

.password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.password-label-row + .input-wrap { margin-bottom: 0; }

.password-toggle {
  padding: 5px 0 5px 6px;
  border: 0;
  background: transparent;
  color: var(--forest-light);
  font-size: .75rem;
  font-weight: 700;
}

.password-toggle:hover { color: #0f3028; }

.login-message {
  min-height: 20px;
  margin: 10px 0 12px;
  color: var(--danger);
  font-size: .8rem;
  line-height: 1.45;
}

.login-submit {
  display: flex;
  width: 100%;
  height: 53px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(110deg, #173e35, #255d4c);
  box-shadow: 0 8px 18px rgba(23, 62, 53, .17);
  color: #fffefa;
  font-size: .91rem;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 62, 53, .23);
  filter: saturate(1.12);
}

.login-submit:disabled { cursor: wait; opacity: .75; }

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .18s ease;
}

.login-submit:hover:not(:disabled) svg { transform: translateX(3px); }

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  color: #7b857e;
  font-size: .72rem;
}

.security-note svg { width: 16px; height: 16px; stroke: #638573; }

.panel-footer {
  margin-top: 54px;
  color: #7e8982;
  font-size: .75rem;
  text-align: center;
}

@keyframes shell-enter {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes copy-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.035); opacity: 1; }
}

@media (max-width: 760px) {
  body { padding: 18px; }
  .login-shell { width: min(100%, 510px); min-height: 0; grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { min-height: 630px; padding: 34px 26px 24px; }
  .login-card { width: min(100%, 390px); }
  .mobile-brand {
    display: inline-flex;
    margin-bottom: 42px;
    color: var(--forest);
  }
  .mobile-brand img { width: 38px; height: 38px; border-radius: 12px; }
  .panel-footer { margin-top: 38px; }
}

@media (max-width: 380px) {
  body { padding: 10px; }
  .login-shell { border-radius: 20px; }
  .login-panel { min-height: 600px; padding: 28px 20px 22px; }
  .mobile-brand { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
