:root {
  --abyss: #06101d;
  --navy-950: #091526;
  --navy-900: #0d1c30;
  --navy-800: #132640;
  --line: rgba(170, 198, 224, 0.14);
  --line-strong: rgba(170, 198, 224, 0.25);
  --ink: #f1f6fb;
  --muted: #8ea2b8;
  --signal: #6fb3e0;
  --signal-bright: #b8e4fa;
  --green: #56c596;
}

* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: dark; background: var(--abyss); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--abyss); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); }
.story-panel { position: relative; min-height: 100vh; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 70% 25%, rgba(76, 143, 187, .2), transparent 31%), linear-gradient(145deg, #081525 0%, #0b1e34 54%, #071321 100%); }
.story-panel::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(160, 202, 229, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 202, 229, .08) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom right, #000, transparent 75%); }
.story-content { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 68px); }
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark { position: relative; width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(157, 212, 242, .42); border-radius: 13px; color: var(--signal-bright); background: linear-gradient(145deg, rgba(111,179,224,.2), rgba(111,179,224,.04)); box-shadow: inset 0 0 24px rgba(111,179,224,.1), 0 12px 35px rgba(0,0,0,.16); }
.brand-mark::after { content: ""; position: absolute; width: 31px; height: 1px; left: 5px; bottom: 8px; background: var(--signal); transform: rotate(-8deg); opacity: .75; }
.brand-mark span { font: 700 20px Manrope, sans-serif; }
.brand > span:last-child, .mobile-brand > span:last-child { display: flex; flex-direction: column; }
.brand strong, .mobile-brand strong { font: 700 15px/1 Manrope, sans-serif; letter-spacing: .18em; }
.brand small, .mobile-brand small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.story-copy { max-width: 650px; margin: auto 0; padding: 80px 0 56px; }
.eyebrow { margin: 0 0 16px; color: var(--signal); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(86,197,150,.09); }
.story-copy h1 { max-width: 580px; margin: 0; font: 600 clamp(38px, 4.5vw, 68px)/1.04 Manrope, sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.story-copy > p:last-child { max-width: 500px; margin: 25px 0 0; color: var(--muted); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; }
.team-card { width: min(100%, 480px); display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); backdrop-filter: blur(14px); }
.avatars { display: flex; padding-left: 9px; }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; margin-left: -9px; border: 2px solid #0c1e32; border-radius: 50%; color: #07121f; font-size: 9px; font-weight: 700; }
.avatar.nicolas { background: linear-gradient(135deg, #d8c3a5, #9a7851); }
.avatar.amaro { background: linear-gradient(135deg, #77c2ec, #376b95); }
.avatar.jose { background: linear-gradient(135deg, #b8a1ed, #65519b); }
.team-card > div:nth-child(2) { min-width: 0; flex: 1; }
.team-card strong, .team-card small { display: block; }
.team-card strong { font-size: 11px; }
.team-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.private-pill { padding: 6px 9px; border: 1px solid rgba(86,197,150,.2); border-radius: 99px; color: #8edbb9; background: rgba(86,197,150,.08); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.orbit { position: absolute; z-index: 1; width: 330px; height: 330px; right: -120px; top: 50%; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(111,179,224,.1); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(111,179,224,.08); border-radius: 50%; }
.orbit::before { inset: 45px; }.orbit::after { inset: 95px; }
.orbit > span { color: rgba(157,212,242,.08); font: 700 76px Manrope; }
.orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 18px var(--signal); }
.orbit i:nth-of-type(1) { top: 39px; left: 72px; }.orbit i:nth-of-type(2) { bottom: 66px; left: 24px; }.orbit i:nth-of-type(3) { top: 83px; right: 13px; }
.ambient { position: absolute; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 260px; height: 260px; left: -130px; bottom: -80px; background: rgba(111,179,224,.06); }
.ambient-two { width: 120px; height: 120px; right: 20%; top: -75px; background: rgba(167,146,220,.08); }

.form-panel { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px clamp(34px, 6vw, 92px) 28px; background: radial-gradient(circle at 100% 0%, rgba(111,179,224,.08), transparent 32%), var(--abyss); }
.mobile-brand { display: none; }
.login-card { width: min(100%, 430px); }
.form-heading .eyebrow { margin-bottom: 13px; }
.form-heading h2 { margin: 0; font: 600 clamp(28px, 3vw, 38px)/1.15 Manrope, sans-serif; letter-spacing: -.035em; }
.form-heading > p:last-child { margin: 12px 0 34px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field { display: block; margin-bottom: 18px; }
.field > span:first-child { display: block; margin: 0 0 8px 2px; color: #becddd; font-size: 11px; font-weight: 600; }
.input-wrap { height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 13px; color: #668096; background: rgba(13,28,48,.78); transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap:focus-within { border-color: rgba(111,179,224,.72); background: rgba(15,34,57,.96); box-shadow: 0 0 0 4px rgba(111,179,224,.09); }
.field-icon { width: 18px; color: var(--signal); text-align: center; font-size: 17px; }
.input-wrap input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.input-wrap input::placeholder { color: #60758d; }
.password-toggle { padding: 7px 0 7px 9px; border: 0; color: var(--signal); background: transparent; font-size: 10px; font-weight: 600; }
.form-error { min-height: 18px; margin: -2px 0 12px; color: #f4a0a0; font-size: 10px; line-height: 1.5; }
.form-error:not(:empty) { padding-left: 2px; }
.submit-button { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(157,212,242,.32); border-radius: 13px; color: #06101d; background: linear-gradient(135deg, #8bc9ec, #64a9d7); box-shadow: 0 14px 38px rgba(62,131,174,.22); font-size: 12px; font-weight: 700; transition: transform .18s, filter .18s; }
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.button-arrow { font-size: 18px; transition: transform .18s; }
.submit-button:hover .button-arrow { transform: translateX(3px); }
.security-note { display: flex; align-items: center; gap: 11px; margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.shield { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(86,197,150,.2); border-radius: 9px; color: var(--green); background: rgba(86,197,150,.07); font-size: 11px; }
.security-note strong, .security-note small { display: block; }
.security-note strong { color: #b8c8d8; font-size: 10px; }
.security-note small { margin-top: 3px; color: #60758d; font-size: 9px; }
.support { margin: auto 0 0; padding-top: 48px; color: #536a80; font-size: 9px; letter-spacing: .04em; }

@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .story-panel { display: none; }
  .form-panel { padding: 34px 24px 24px; justify-content: flex-start; background: radial-gradient(circle at 50% -10%, rgba(76,143,187,.2), transparent 34%), var(--abyss); }
  .mobile-brand { width: min(100%, 430px); display: flex; margin-bottom: clamp(70px, 14vh, 130px); }
  .support { padding-top: 60px; }
}

@media (max-width: 480px) {
  .form-panel { padding-inline: 20px; }
  .mobile-brand { margin-bottom: 70px; }
  .form-heading h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
