  :root{
    --ink:#0E1A2B;
    --petrol:#1B3A4B;
    --petrol-2:#234a5f;
    --approved:#2F6F5E;
    --sand:#F2EFE6;
    --sand-dim:#E7E2D3;
    --amber:#C9952C;
    --amber-soft:rgba(201,149,44,0.18);
    --white:#FFFFFF;
    --danger:#B3492F;
    --radius:14px;
    --shadow-lg:0 30px 60px -20px rgba(14,26,43,0.35);
  }

  *{box-sizing:border-box;}
  html,body{height:100%;}
  body{
    margin:0;
    font-family:'Inter',sans-serif;
    background:var(--sand);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
  }

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }

  .screen{
    min-height:100vh;
    display:grid;
    grid-template-columns: 1.15fr 1fr;
  }

  /* ---------- LEFT PANEL ---------- */
  .panel-story{
    position:relative;
    background:
      radial-gradient(900px 600px at 12% 8%, rgba(255,255,255,0.05), transparent 60%),
      linear-gradient(165deg, var(--ink) 0%, var(--petrol) 62%, var(--petrol-2) 100%);
    color:var(--sand);
    padding:64px 64px 48px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:12px;
    z-index:2;
  }
  .brand-logo{
    height:38px;
    width:38px;
    border-radius:9px;
    flex-shrink:0;
    display:block;
  }
  .brand-name{
    font-family:'Fraunces',serif;
    font-size:19px;
    letter-spacing:0.01em;
    font-weight:500;
  }
  .brand-name span{ color:var(--amber); }

  .story{
    z-index:2;
    max-width:480px;
    margin-top:40px;
  }
  .story-eyebrow{
    font-size:12.5px;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--amber);
    font-weight:600;
    margin-bottom:18px;
  }
  .story h1{
    font-family:'Fraunces',serif;
    font-size:42px;
    line-height:1.16;
    font-weight:500;
    margin:0 0 20px;
    letter-spacing:-0.01em;
  }
  .story p{
    font-size:15.5px;
    line-height:1.65;
    color:rgba(242,239,230,0.72);
    margin:0;
    max-width:420px;
  }

  .topics{
    z-index:2;
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:11px;
  }
  .topic-item{
    display:flex;
    align-items:center;
    gap:11px;
  }
  .topic-item span:last-child{
    font-family:'Fraunces',serif;
    font-size:23px;
    font-weight:500;
    color:var(--sand);
  }
  .dot{
    width:7px;height:7px;
    border-radius:50%;
    flex-shrink:0;
  }
  .dot-amber{ background:var(--amber); }
  .dot-green{ background:var(--approved); }

  .panel-foot{
    z-index:2;
    display:flex;
    gap:32px;
    font-size:12.5px;
    color:rgba(242,239,230,0.45);
    border-top:1px solid rgba(242,239,230,0.12);
    padding-top:22px;
    margin-top:48px;
  }
  .panel-foot b{ color:rgba(242,239,230,0.75); font-weight:600; }

  /* ambient connecting dots behind everything */
  .ambient{
    position:absolute; inset:0; z-index:1; opacity:0.16;
    width:100%; height:100%;
  }

  /* ---------- RIGHT PANEL (LOGIN) ---------- */
  .panel-login{
    background:linear-gradient(180deg,#F7F9FA 0%,#F1F4F6 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px;
  }
  .login-card{
    width:100%;
    max-width:380px;
  }
  .login-head{ margin-bottom:32px; }
  .login-head .eyebrow{
    font-size:12px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:var(--approved);
    font-weight:600;
    margin-bottom:12px;
  }
  .login-head h2{
    font-family:'Fraunces',serif;
    font-size:23px;
    font-weight:500;
    margin:0 0 10px;
    color:var(--ink);
  }
  .login-head p{
    font-size:14px;
    color:#6b7178;
    margin:0;
    line-height:1.6;
  }

  form{ display:flex; flex-direction:column; gap:18px; }

  .field{ display:flex; flex-direction:column; gap:7px; }
  .field label{
    font-size:12.5px;
    font-weight:600;
    color:var(--ink);
    letter-spacing:0.01em;
  }
  .input-wrap{
    position:relative;
    display:flex;
    align-items:center;
    border:1.5px solid #D7DEE3;
    border-radius:10px;
    background:#FFFFFF;
    transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .input-wrap:focus-within{
    border-color:var(--petrol);
    background:var(--white);
    box-shadow:0 0 0 4px rgba(27,58,75,0.08);
  }
  .input-wrap svg{
    width:18px; height:18px;
    margin-left:14px;
    flex-shrink:0;
    color:#8a98a3;
    transition:color .18s ease;
  }
  .input-wrap:focus-within svg{ color:var(--petrol); }
  .input-wrap input{
    width:100%;
    border:none;
    background:transparent;
    outline:none;
    padding:13px 12px;
    font-size:14.5px;
    font-family:'Inter',sans-serif;
    color:var(--ink);
  }
  .input-wrap input::placeholder{ color:#aeb0a6; }

  .toggle-pass{
    background:none; border:none; cursor:pointer;
    padding:0 14px;
    color:#9a9d92;
    display:flex; align-items:center;
    flex-shrink:0;
  }
  .toggle-pass:hover{ color:var(--petrol); }
  .toggle-pass svg{ width:18px; height:18px; }

  .row-between{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:-2px;
  }
  .remember{
    display:flex; align-items:center; gap:8px;
    font-size:13px; color:#5b5f57;
    cursor:pointer;
    user-select:none;
  }
  .remember input{
    width:15px;height:15px;
    accent-color:var(--petrol);
    cursor:pointer;
  }
  .forgot{
    font-size:13px;
    color:var(--petrol);
    text-decoration:none;
    font-weight:600;
  }
  .forgot:hover{ text-decoration:underline; }

  .btn-enter{
    margin-top:6px;
    border:none;
    border-radius:10px;
    padding:14px 18px;
    background:var(--ink);
    color:var(--sand);
    font-size:14.5px;
    font-weight:600;
    font-family:'Inter',sans-serif;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:background .18s ease, transform .08s ease;
  }
  .btn-enter:hover{ background:var(--petrol); }
  .btn-enter:active{ transform:scale(0.98); }
  .btn-enter svg{ width:16px; height:16px; transition:transform .18s ease; }
  .btn-enter:hover svg{ transform:translateX(3px); }

  .error-msg{
    display:none;
    align-items:flex-start;
    gap:8px;
    background:#FBEEEA;
    border:1px solid #EFD2C5;
    color:var(--danger);
    font-size:13px;
    line-height:1.5;
    padding:11px 13px;
    border-radius:9px;
  }
  .error-msg.show{ display:flex; }
  .error-msg svg{ width:16px; height:16px; flex-shrink:0; margin-top:1px; }

  .divider-note{
    margin-top:26px;
    padding-top:20px;
    border-top:1px solid #E1E7EA;
    font-size:13px;
    color:#9aa3a8;
    text-align:center;
    line-height:1.6;
  }
  .whatsapp-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-top:10px;
    font-size:13.5px;
    color:#0f6e56;
    font-weight:600;
    text-decoration:none;
    background:#E1F5EE;
    padding:8px 16px;
    border-radius:999px;
    transition:background .15s ease;
  }
  .whatsapp-link:hover{ background:#cdeadf; }
  .whatsapp-link svg{ width:15px;height:15px; flex-shrink:0; }

  /* responsive */
  @media (max-width: 900px){
    .screen{ grid-template-columns:1fr; }
    .panel-story{ display:none; }
    .panel-login{ padding:32px 22px; }
  }

  /* focus visibility for a11y */
  a:focus-visible, button:focus-visible, input:focus-visible{
    outline:2px solid var(--petrol);
    outline-offset:2px;
  }
