:root {
  --teal: #0abab5;
  --teal-dark: #007b78;
  --navy: #193536;
  --ink: #243c3d;
  --ink-soft: #647575;
  --border: #dce5e2;
  --danger: #be3742;
  --ring: 0 0 0 4px rgba(10, 186, 181, 0.13);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse at 12% 15%, #e3eeea, transparent 55%), #f0f3ef;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 4px; }

.card {
  width: min(1120px, 100%);
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 90px -35px rgba(27, 57, 49, 0.22), 0 4px 16px rgba(27, 57, 49, 0.03);
  animation: cardIn 0.65s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f5ed, #e9efea);
  border-right: 1px solid #e6ece6;
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.logo-mark { display: block; width: 44px; height: 44px; flex: none; }
.wordmark { width: 210px; display: flex; flex-direction: column; gap: 8px; }
.wordmark-line { display: flex; justify-content: space-between; white-space: nowrap; color: var(--navy); }
.wordmark-line:first-child { font-size: 24px; line-height: 1; font-weight: 700; }
.wordmark-line:last-child { font-size: 12px; line-height: 1; font-weight: 500; }
.brand-story { position: relative; z-index: 1; margin-top: 87px; }
.eyebrow { font-size: 10px; line-height: 1.6; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.brand-story .eyebrow { display: flex; align-items: center; gap: 9px; color: #526b61; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-dark); }
.brand-story h1 { margin-top: 23px; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.055em; font-weight: 500; }
.brand-story h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--teal-dark); letter-spacing: -0.05em; }
.brand-description { margin-top: 24px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.raas-callout { position: relative; z-index: 1; max-width: 390px; margin-top: 28px; }
.raas-eyebrow { color: var(--teal-dark); font-size: 9px; line-height: 1.5; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.raas-callout h2 { margin-top: 7px; color: var(--navy); font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; }
.raas-callout > p:last-child { margin-top: 6px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.brand-footer { position: relative; z-index: 1; margin-top: auto; padding-top: 160px; display: flex; gap: 12px; align-items: center; font-size: 11px; color: #526b61; }
.brand-rule { height: 1px; width: 26px; background: #81988c; }

.orbital-art { position: absolute; width: 360px; height: 360px; right: -70px; bottom: -40px; pointer-events: none; }
.orbit { position: absolute; inset: 30px; border: 1px solid rgba(0, 123, 120, 0.17); border-radius: 50%; }
.orbit-one { --electron-duration: 12s; transform: rotate(-32deg) scaleX(0.45); animation: orbitTurn 32s linear infinite; }
.orbit-two { --electron-duration: 18s; transform: rotate(32deg) scaleX(0.65); animation: orbitTurn 42s linear infinite reverse; }
.orbit-three { --electron-duration: 24s; inset: 65px 0; transform: rotate(-32deg); animation: orbitTurn 54s linear infinite; }
.orbit-core { position: absolute; inset: 91px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #e0f2e9, #80b9a7 60%, #418c80); box-shadow: inset -12px -12px 30px #377c7355, 10px 20px 45px #39694f15; animation: corePulse 8s ease-in-out infinite; }
/* The track follows the center of the ring's one-pixel border. */
.electron-track { position: absolute; inset: -0.5px; }
.electron { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-dark); box-shadow: 0 0 0 4px #007b780a; offset-path: ellipse(50% 50% at 50% 50%); offset-anchor: center; offset-rotate: 0deg; animation: electronOrbit var(--electron-duration) linear infinite; }
.electron:nth-child(2) { offset-distance: 50%; animation-delay: calc(var(--electron-duration) * -0.5); }
@keyframes orbitTurn { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes electronOrbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.signin-panel { position: relative; min-width: 0; padding: 49px 52px 30px; display: flex; flex-direction: column; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-soft); }
.panel-index { font-size: 9px; letter-spacing: 0.1em; color: #758585; white-space: nowrap; }
.signin-content { width: 100%; max-width: 360px; margin: auto; padding: 52px 0 46px; }
.panel-head { margin-bottom: 33px; }
.panel-head h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.045em; font-weight: 500; color: var(--navy); }
.panel-head p { margin-top: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.login-notice { font-size: 12px; line-height: 1.6; color: var(--teal-dark); }
.login-notice:not(:empty) { margin-bottom: 20px; }
.login-notice.is-error { color: var(--danger); }
.login-notice a { font-weight: 600; overflow-wrap: anywhere; }
.field-hint { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.field { margin-bottom: 21px; }
.field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; }
.input-wrap { position: relative; }
.input { display: block; width: 100%; min-height: 54px; font-size: 16px; color: var(--ink); background: #fafbf9; border: 1px solid var(--border); border-radius: 9px; padding: 15px 15px 15px 45px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.input::placeholder { color: #7c8b89; font-size: 13px; }
.input:hover { border-color: #a7bfba; }
.input:focus { border-color: var(--teal-dark); background: #fff; box-shadow: var(--ring); }
.icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #7e9390; pointer-events: none; }
.icon svg { width: 100%; height: 100%; }
.input:focus ~ .icon { color: var(--teal-dark); }
.input.invalid { border-color: var(--danger); }
.error-msg { display: block; color: var(--danger); font-size: 12px; line-height: 1.5; }
.error-msg.show { margin-top: 7px; }
.toggle-pass { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: transparent; border-radius: 6px; cursor: pointer; color: #718783; display: grid; place-items: center; }
.toggle-pass:hover { background: #edf3ef; color: var(--teal-dark); }
.toggle-pass svg { width: 18px; height: 18px; }
.toggle-pass .eye-off, .toggle-pass.showing .eye-on { display: none; }
.toggle-pass.showing .eye-off { display: block; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 25px; font-size: 12px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; min-height: 44px; }
.remember input { width: 16px; height: 16px; accent-color: var(--teal-dark); cursor: pointer; }
.forgot { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.btn-primary { position: relative; width: 100%; min-height: 54px; border: 1px solid #00726f; border-radius: 9px; color: #fff; background: linear-gradient(115deg, #008682, #006c69); box-shadow: 0 6px 14px #007b7814; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #007b7826; }
.btn-primary:active { transform: none; }
.btn-primary:disabled { cursor: wait; }
.btn-primary .arrow { position: absolute; right: 19px; }
.btn-primary.loading .btn-label, .btn-primary.loading .arrow { visibility: hidden; }
.spinner { display: none; position: absolute; width: 19px; height: 19px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; }
.btn-primary.loading .spinner { display: block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.signup { margin-top: 27px; text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.signup a { margin-left: 4px; font-weight: 600; }
.signup a span { margin-left: 4px; }
.footnote { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid #edf0ec; padding-top: 20px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.copyright { margin-right: auto; }
.footnote a { color: var(--ink-soft); padding: 6px 0; }
.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.success { position: absolute; inset: 0; z-index: 5; background: #fff; display: grid; place-items: center; text-align: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.success.show { opacity: 1; visibility: visible; }
.check { width: 72px; height: 72px; background: #e6f3ed; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; }
.check svg { width: 32px; height: 32px; }
.check path { stroke: var(--teal-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.success h3 { font-size: 26px; font-weight: 500; color: var(--navy); }
.success p { margin-top: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }

@media (max-width: 1000px) {
  body { padding: 28px; }
  .brand-panel { padding: 36px; }
  .signin-panel { padding: 37px 32px 24px; }
  .panel-index { display: none; }
}
@media (max-width: 760px) {
  body { padding: 20px; }
  .card { max-width: 480px; min-height: 0; grid-template-columns: 1fr; border-radius: 20px; }
  .brand-panel { padding: 30px 28px; border-right: none; border-bottom: 1px solid #e2e9e1; }
  .brand-story { margin-top: 29px; }
  .brand-story .eyebrow, .brand-description, .brand-footer { display: none; }
  .brand-story h1 { margin-top: 0; font-size: 33px; line-height: 1.15; }
  .raas-callout { max-width: 360px; margin-top: 18px; }
  .raas-callout h2 { font-size: 15px; }
  .raas-callout > p:last-child { max-width: 340px; font-size: 11px; }
  .orbital-art { width: 230px; height: 230px; right: -90px; bottom: -105px; opacity: 0.65; }
  .orbit { inset: 20px; }
  .orbit-three { inset: 45px 0; }
  .orbit-core { inset: 60px; }
  .signin-panel { padding: 30px 28px 20px; }
  .panel-top { display: none; }
  .signin-content { max-width: none; margin: 0; padding: 0 0 32px; }
  .panel-head { margin-bottom: 27px; }
  .panel-head h2 { font-size: 28px; }
}
@media (max-width: 380px) {
  body { padding: 12px; }
  .brand-panel, .signin-panel { padding-left: 22px; padding-right: 22px; }
  .wordmark { width: 182px; gap: 7px; }
  .wordmark-line:first-child { font-size: 22px; }
  .wordmark-line:last-child { font-size: 11px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo { gap: 10px; }
  .footnote { gap: 14px; }
  .copyright { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
