:root {
  --navy: #062751;
  --navy-deep: #031b39;
  --blue: #23677a;
  --cyan: #edf5f6;
  --gray: #717d84;
  --line: #dce5e8;
  --error: #a3281d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #eef5f7;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(410px, 0.82fr) minmax(520px, 1.18fr);
  min-height: 100vh;
  padding: 4px;
  overflow: hidden;
  background: #03152d;
}

.login-form-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8px);
  padding: 34px clamp(38px, 4.5vw, 68px);
  border-radius: 0 15px 15px 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(31, 111, 134, 0.08), transparent 32%),
    linear-gradient(145deg, #fff 0%, #f9fcfd 55%, #edf6f8 100%);
}

.login-form-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 7%;
  bottom: 7%;
  width: 1px;
  background: linear-gradient(transparent, #b9d4dd 18%, #b9d4dd 82%, transparent);
}

.login-form-wrap {
  width: min(100%, 390px);
  animation: loginContentIn 0.8s cubic-bezier(.22, 1, .36, 1) both;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  height: 112px;
  margin: 0 0 34px -7px;
}

.login-heart {
  width: 86px;
  height: 86px;
  margin-bottom: -30px;
  filter: drop-shadow(0 6px 12px rgba(6, 39, 81, 0.12));
  flex: 0 0 auto;
}

.login-heart-muted { fill: #747d82; }
.login-heart-main { fill: var(--navy); }

.login-heart-pulse {
  animation: heartPulse 2.4s cubic-bezier(.2, 0, .2, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.login-brand-slogan {
  display: grid;
  justify-items: start;
  line-height: 1;
  transform: translateX(2px);
}

.login-brand-slogan small {
  margin-left: 1px;
  color: #747d82;
  font-size: 7px;
  font-weight: 700;
}

.login-brand-slogan strong {
  display: flex;
  align-items: baseline;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.login-brand-slogan strong span { color: #747d82; }
.login-brand-slogan strong b { color: var(--navy); }

.login-heading > span,
.login-visual-copy > span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-visual-copy > span {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 10px 0 9px;
  color: var(--navy);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.login-heading p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-field-help {
  color: #7891b0;
  font-size: 11px;
  font-weight: 400;
}

.login-form label > span {
  color: #405563;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-input {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(6, 39, 81, 0.035);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.login-input:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 103, 122, 0.1), 0 10px 26px rgba(6, 39, 81, 0.07);
  transform: translateY(-1px);
}

.login-input > svg,
.password-toggle svg,
.login-submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input > svg {
  color: #79909c;
}

.login-input input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy-deep);
  font-size: 14px;
}

.login-input input::placeholder {
  color: #9aa9b1;
}

.login-input input:-webkit-autofill,
.login-input input:-webkit-autofill:hover,
.login-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--navy-deep);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}

.password-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71858f;
  cursor: pointer;
}

.password-toggle:hover {
  background: #edf6f8;
  color: var(--blue);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -2px;
  font-size: 11px;
}

.login-options .login-remember {
  display: flex;
  grid: none;
  align-items: center;
  gap: 8px;
  color: #62758a;
  cursor: pointer;
}

.login-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #1473e6;
}

.login-options a {
  color: #1473e6;
  font-weight: 700;
  text-decoration: none;
}

.login-options a:hover { text-decoration: underline; }

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(105deg, var(--navy) 0%, #0a4165 62%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 15px 30px rgba(6, 39, 81, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: transform 0.18s, box-shadow 0.18s;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 39, 81, 0.27);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #efb8b2;
  border-radius: 10px;
  background: #fff5f3;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
}

.login-error span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 12px;
}

.login-support {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  color: #83939b;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
}

.login-support span {
  width: 54px;
  height: 1px;
  background: var(--line);
}

.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 34px 0 0;
  color: #7891b0;
  font-size: 10px;
}

.login-security svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: calc(100vh - 8px);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px);
  background-image:
    linear-gradient(180deg, rgba(3, 27, 57, 0.12) 0%, rgba(3, 27, 57, 0.3) 48%, rgba(3, 27, 57, 0.92) 100%),
    linear-gradient(110deg, rgba(31, 111, 134, 0.52), rgba(6, 39, 81, 0.1) 62%),
    url("../img/roger.1f24a70c592e.jpeg");
  background-position: center 43%;
  background-repeat: no-repeat;
  background-size: 104% auto;
  animation: loginBackdrop 18s cubic-bezier(.45, 0, .25, 1) infinite alternate;
}

.login-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 39, 81, 0.18), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.08) 25%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.login-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14%;
  top: -13%;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.018);
}

.login-visual-copy {
  width: min(100%, 720px);
  margin: auto 0 42px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(3, 27, 57, 0.24);
  animation: visualContentIn 1s 0.12s cubic-bezier(.22, 1, .36, 1) both;
}

.login-visual-copy > span {
  color: #bde7f1;
}

.login-visual-copy h2 {
  margin: 12px 0 15px;
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.login-visual-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
}

.login-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
}

.login-pillar {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.login-pillar + .login-pillar {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.login-pillar > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(210, 241, 250, 0.28);
  border-radius: 12px;
  background: rgba(158, 214, 232, 0.16);
  color: #d9f3fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(3, 27, 57, 0.16);
  backdrop-filter: blur(10px);
}

.login-pillar svg,
.login-visual-index svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-pillar p { margin: 0; color: #fff; }
.login-pillar strong { display: block; font-size: 12px; }
.login-pillar small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.7); font-size: 10px; line-height: 1.35; }

.login-visual-index {
  position: absolute;
  top: 42px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-visual-index svg { width: 23px; height: 23px; margin-right: 6px; }

.login-visual-index b {
  color: #fff;
  font-size: 12px;
}

.login-visual-index i {
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.48);
}

.login-transition {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(35, 103, 122, 0.12), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f3f8f9 58%, #e8f1f3 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.52s cubic-bezier(.76, 0, .24, 1), opacity 0.28s ease;
}

.login-transition-heart {
  width: clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
  margin: clamp(-80px, -6vw, -38px) 0 clamp(-82px, -6vw, -42px);
  opacity: 0;
  filter: drop-shadow(0 24px 38px rgba(6, 39, 81, 0.14));
  transition: opacity 0.22s 0.2s;
}

.login-transition-heart-main { fill: var(--navy); }
.login-transition-heart-muted { fill: #7b858a; }

.login-leaving .login-transition {
  opacity: 1;
  transform: translateY(0);
}

.login-leaving .login-transition-heart { opacity: 1; }

.login-submit.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.login-submit.is-loading svg { animation: submitArrow 0.7s ease infinite alternate; }

@keyframes heartPulse {
  0%, 30%, 70%, 100% { transform: translate(141.73px, 141.73px) scale(1); }
  12% { transform: translate(141.73px, 141.73px) scale(1.08); }
  45% { transform: translate(141.73px, 141.73px) scale(1.12); }
}

@keyframes loginContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visualContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginBackdrop {
  from { background-position: center 43%; background-size: 104% auto; }
  to { background-position: center 48%; background-size: 110% auto; }
}

@keyframes submitArrow { to { transform: translateX(4px); } }

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    background-image:
      linear-gradient(135deg, rgba(3, 27, 57, 0.88), rgba(31, 111, 134, 0.72)),
      url("../img/roger.1f24a70c592e.jpeg");
    background-position: center;
    background-size: cover;
  }

  .login-form-panel {
    min-height: calc(100vh - 8px);
    border-radius: 0;
    background: rgba(248, 252, 253, 0.93);
    backdrop-filter: blur(14px);
  }

  .login-form-panel::after,
  .login-visual {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-form-panel {
    place-items: start center;
    padding: 28px 22px;
  }

  .login-options { font-size: 10px; }

  .login-security { margin-top: 24px; }

  .login-brand {
    height: 105px;
    margin-bottom: 22px;
  }

  .login-heart {
    width: 78px;
    height: 78px;
    margin-bottom: -27px;
  }

  .login-heading h1 {
    font-size: 34px;
  }

  .login-form {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-form-wrap,
  .login-heart-pulse,
  .login-visual,
  .login-visual-copy,
  .login-submit.is-loading svg {
    animation: none;
  }

  .login-transition { transition: none; }
}

.recovery-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(35, 103, 122, 0.12), transparent 28%),
    linear-gradient(145deg, #f7fafb, #e8f1f3);
}

.recovery-shell {
  width: min(100%, 440px);
  padding: 42px;
  border: 1px solid rgba(6, 39, 81, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(6, 39, 81, 0.13);
}

.recovery-brand { display: block; margin-bottom: 45px; color: #7b858a; font-size: 10px; text-decoration: none; }
.recovery-brand strong { display: block; color: #7b858a; font-size: 15px; }
.recovery-brand strong span { color: var(--navy); }
.recovery-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.recovery-shell h1 { margin: 9px 0; color: var(--navy); font-size: 31px; letter-spacing: -.035em; }
.recovery-shell > p { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.55; }
.recovery-form { display: grid; gap: 18px; margin-top: 28px; }
.recovery-form label { display: grid; gap: 7px; color: #405563; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recovery-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--navy-deep); }
.recovery-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 103, 122, .1); }
.recovery-form button, .recovery-action { display: grid; min-height: 50px; place-items: center; border: 0; border-radius: 10px; background: linear-gradient(105deg, var(--navy), var(--blue)); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.recovery-back { display: inline-block; margin-top: 22px; color: var(--blue); font-size: 12px; text-decoration: none; }
.recovery-action { margin-top: 28px; }
.recovery-icon { display: grid; width: 52px; height: 52px; margin-bottom: 20px; place-items: center; border-radius: 50%; background: #e4f3ed; color: #237753; font-size: 24px; }
.recovery-error { margin-top: 18px; padding: 11px; border-radius: 9px; background: #fff1ef; color: var(--error); font-size: 12px; }

@media (max-width: 520px) {
  .recovery-shell { padding: 30px 24px; }
}
