:root {
  --cream: #f7f5f0;
  --cream-2: #efece5;
  --paper: #ffffff;
  --navy: #08101e;
  --navy-2: #121a2f;
  --navy-3: #1e2a44;
  --bordeaux: #6b1c23;
  --bordeaux-3: #c77883;
  --ink: #3a4556;
  --ink-2: #5a6572;
  --line: #d8d3c7;
  --line-2: #e5e1d6;
  --ok: #2f6e4c;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-editorial: cubic-bezier(0.76, 0, 0.24, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--navy);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
::selection {
  background: var(--bordeaux);
  color: var(--cream);
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
input {
  font: inherit;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.serif {
  font-family: "Cormorant Garamond", serif;
}

/* ==========================================================
   FDIC top strip
   ========================================================== */
.fdic {
  background: var(--navy);
  color: var(--cream);
  padding: 8px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.fdic .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(247, 245, 240, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}
.fdic p {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.fdic .full {
  display: none;
}
@media (min-width: 700px) {
  .fdic .full {
    display: inline;
  }
  .fdic .short {
    display: none;
  }
}

/* ==========================================================
   Header
   ========================================================== */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  height: 68px;
}
.header__logo img {
  height: 32px;
  width: auto;
}
.header__aux {
  display: none;
  align-items: center;
  gap: 20px;
  color: var(--ink);
}
@media (min-width: 700px) {
  .header__aux {
    display: flex;
  }
}
.header__aux a {
  transition: color 0.2s;
}
.header__aux a:hover {
  color: var(--bordeaux);
}
.header__aux .lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}
.header__aux .lock svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================
   Main split layout
   ========================================================== */
.split {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
@media (min-width: 960px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
  }
}

/* ---------- Editorial photo panel (left) ---------- */
.editorial {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 260px;
  order: 2; /* mobile: below form */
  display: none; /* hidden on mobile — go straight to login details */
}
@media (min-width: 960px) {
  .editorial {
    order: 0;
    min-height: unset;
    display: block;
  }
}

.editorial__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 20s var(--ease-editorial) infinite alternate;
}
@keyframes ken {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.05) translateY(-1%);
  }
}
.editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 30, 0.35) 0%,
    rgba(8, 16, 30, 0) 30%,
    rgba(8, 16, 30, 0) 55%,
    rgba(8, 16, 30, 0.65) 100%
  );
  pointer-events: none;
}

.editorial__top {
  position: absolute;
  top: clamp(20px, 4vw, 36px);
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream);
}
.editorial__top .l {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.editorial__top .l .sq {
  width: 6px;
  height: 6px;
  background: var(--bordeaux-3);
}

.editorial__quote {
  position: absolute;
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(72px, 8vw, 100px);
  z-index: 2;
  color: var(--cream);
  max-width: 520px;
}
.editorial__quote h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(8, 16, 30, 0.35);
}
.editorial__quote h2 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--bordeaux-3);
}
.editorial__quote .line {
  display: block;
  overflow: hidden;
}
.editorial__quote .line > span {
  display: block;
  transform: translateY(110%);
  animation: reveal 1.1s var(--ease-editorial) forwards;
}
.editorial__quote .line:nth-child(1) > span {
  animation-delay: 0.15s;
}
.editorial__quote .line:nth-child(2) > span {
  animation-delay: 0.3s;
}
@keyframes reveal {
  to {
    transform: translateY(0);
  }
}

.editorial__bottom {
  position: absolute;
  bottom: clamp(20px, 3vw, 32px);
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 245, 240, 0.85);
}
.editorial__bottom .place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.editorial__bottom .place svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ---------- Form panel (right) ---------- */
.form-panel {
  background: var(--cream-2);
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 40px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
  border-top: 1px solid var(--line-2);
}
@media (min-width: 960px) {
  .form-panel {
    order: 0;
    border-top: 0;
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(48px, 6vw, 80px);
    justify-content: flex-start;
  }
}
.form-panel__inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.eyebrow svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

.form-panel h1 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}
@media (min-width: 500px) {
  .form-panel h1 {
    font-size: 38px;
  }
}
.form-panel h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--bordeaux);
}
.sub {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

/* Alert */
.alert {
  display: none;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #fbe9e9;
  border-left: 3px solid var(--bordeaux);
  color: #5b141b;
  font-size: 13px;
  line-height: 1.4;
  gap: 10px;
  align-items: flex-start;
}
.alert.show {
  display: flex;
}
.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--bordeaux);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.field .input-wrap {
  position: relative;
  display: flex;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
  padding: 14px 14px 14px 40px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 2px;
}
.field input::placeholder {
  color: #a8a29a;
}
.field input:hover {
  border-color: #b8b2a5;
}
.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8, 16, 30, 0.08);
}
.field.has-error input {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(107, 28, 35, 0.08);
}
.field .icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  pointer-events: none;
}
.field .toggle-pw {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  min-height: 32px;
  transition: color 0.2s;
}
.field .toggle-pw:hover {
  color: var(--bordeaux);
}
.field .error {
  display: none;
  margin-top: 4px;
  color: var(--bordeaux);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.field.has-error .error {
  display: block;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
  row-gap: 12px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check .box {
  width: 18px;
  height: 18px;
  border: 1px solid #b8b2a5;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
  flex-shrink: 0;
}
.check .box svg {
  width: 12px;
  height: 12px;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.15s;
}
.check input:checked ~ .box {
  background: var(--navy);
  border-color: var(--navy);
}
.check input:checked ~ .box svg {
  opacity: 1;
}
.forgot {
  font-size: 13px;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.forgot:hover {
  color: var(--bordeaux);
}

/* Submit */
.submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 15px 20px;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 2px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-editorial);
  z-index: 0;
}
.submit:hover::before {
  transform: scaleX(1);
}
.submit > * {
  position: relative;
  z-index: 1;
}
.submit:focus-visible {
  outline: 3px solid rgba(107, 28, 35, 0.4);
  outline-offset: 2px;
}
.submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.submit .arrow {
  transition: transform 0.3s;
}
.submit:hover .arrow {
  transform: translateX(3px);
}
.submit .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(247, 245, 240, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit.loading .spinner {
  display: block;
}
.submit.loading .arrow {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  margin: 28px 0 20px;
  height: 1px;
  background: rgba(8, 16, 30, 0.12);
}
.enroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.enroll .text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  max-width: 260px;
  line-height: 1.35;
}
.enroll .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--navy);
  transition: color 0.2s, border-color 0.2s;
}
.enroll .link:hover {
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.enroll .link .arrow {
  transition: transform 0.2s;
}
.enroll .link:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================
   Support (WhatsApp + Telegram)
   ========================================================== */
.support {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 16, 30, 0.1);
}
.support__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.support__label svg {
  color: var(--ok);
}
.support__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.support__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  color: var(--navy);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.2s var(--ease);
  min-height: 46px;
  position: relative;
  overflow: hidden;
}
.support__btn svg {
  width: 16px;
  height: 16px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  flex-shrink: 0;
}
.support__btn--wa svg {
  color: #25d366;
}
.support__btn--tg svg {
  color: #229ed9;
}
.support__btn:hover {
  transform: translateY(-1px);
}
.support__btn--wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}
.support__btn--tg:hover {
  background: #229ed9;
  color: #ffffff;
  border-color: #229ed9;
}
.support__btn:hover svg {
  color: #ffffff;
}
.support__btn:focus-visible {
  outline: 3px solid rgba(107, 28, 35, 0.4);
  outline-offset: 2px;
}

/* Security row */
.security {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 16, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.security__lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.security__lock svg {
  width: 14px;
  height: 14px;
}
.security__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.security__links a {
  font-size: 12px;
  color: var(--ink);
  transition: color 0.2s;
}
.security__links a:hover {
  color: var(--bordeaux);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.security__links .sep {
  color: rgba(8, 16, 30, 0.25);
}

.helper {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 20px clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}
@media (min-width: 800px) {
  .footer {
    grid-template-columns: 1fr auto;
  }
}
.footer__reg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  opacity: 0.85;
}
.footer__reg span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__reg .sep {
  opacity: 0.4;
}
.footer__legal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  text-align: left;
}
@media (min-width: 800px) {
  .footer__legal {
    text-align: right;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .editorial__quote .line > span {
    transform: none !important;
    animation: none !important;
  }
}
