  :root{
    --ink:#2b2620;
    --cream:#f7f1e8;
    --moss:#41523f;
    --moss-deep:#2c3a2a;
    --blush:#e7b9a8;
    --gold:#b9904a;
    --rust:#b6453a;
    --line:rgba(43,38,32,0.12);
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html,body{height:100%;}
  body{
    background:var(--cream);
    height:100vh;
    height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Inter',sans-serif;
    color:var(--ink);
    -webkit-tap-highlight-color:transparent;
    overflow:hidden;
  }
  .device{
    width:430px;
    max-width:100vw;
    height:100vh;
    height:100dvh;
    background:var(--cream);
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
    margin:0 auto;
  }
  .scroll{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; display:flex; flex-direction:column; }
  .scroll::-webkit-scrollbar{ display:none; }

  .hero{
    position:relative;
    height:280px;
    flex-shrink:0;
    overflow:hidden;
  }
  .hero img{ width:100%; height:100%; object-fit:cover; display:block; }
  .hero .shade{
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(20,16,10,0.15) 0%, var(--cream) 96%);
  }
  .hero .brand{
    position:absolute; top:24px; left:24px;
    display:flex; align-items:center; gap:8px;
    color:#fff; font-family:'Fraunces',serif; font-weight:600; font-size:15px;
    text-shadow:0 1px 6px rgba(0,0,0,0.3);
  }
  .hero .brand .mark{
    width:26px; height:26px; border-radius:50%;
    background:rgba(255,255,255,0.25); backdrop-filter:blur(4px);
    display:flex; align-items:center; justify-content:center; font-size:13px;
  }

  .content{ padding:8px 28px 28px; flex:1; }
  .eyebrow{
    font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--moss); font-weight:600;
  }
  h1{
    font-family:'Fraunces',serif; font-weight:600; font-size:30px;
    margin-top:4px; letter-spacing:-0.01em;
  }
  h1 em{ font-style:italic; color:var(--gold); font-weight:500; }
  .sub{ font-size:13px; color:rgba(43,38,32,0.6); margin-top:6px; line-height:1.4; }

  form{ margin-top:26px; display:flex; flex-direction:column; gap:16px; }
  .field{ display:flex; flex-direction:column; gap:6px; }
  .field label{ font-size:11.5px; font-weight:600; color:rgba(43,38,32,0.7); letter-spacing:0.02em; }
  .field .input-wrap{
    position:relative; display:flex; align-items:center;
  }
  .field input{
    width:100%; border:1px solid var(--line); background:#fff;
    border-radius:14px; padding:14px 16px; font-size:14px; font-family:inherit;
    color:var(--ink); outline:none; transition:border-color .15s ease, box-shadow .15s ease;
  }
  .field input::placeholder{ color:rgba(43,38,32,0.32); }
  .field input:focus{
    border-color:var(--moss); box-shadow:0 0 0 3px rgba(65,82,63,0.12);
  }
  .field .toggle-pass{
    position:absolute; right:14px; background:none; border:none; cursor:pointer;
    font-size:12px; font-weight:600; color:var(--moss); font-family:inherit;
  }

  .row-between{ display:flex; align-items:center; justify-content:space-between; margin-top:-4px; }
  .remember{ display:flex; align-items:center; gap:7px; font-size:12px; color:rgba(43,38,32,0.65); }
  .remember input{ width:15px; height:15px; accent-color:var(--moss); }
  .forgot{ font-size:12px; font-weight:600; color:var(--moss-deep); text-decoration:none; }

  .btn-primary{
    margin-top:6px; background:var(--moss-deep); color:var(--cream); border:none;
    padding:15px; border-radius:14px; font-weight:600; font-size:14px; cursor:pointer;
    font-family:inherit; box-shadow:0 10px 22px rgba(44,58,42,0.25);
    transition:transform .15s ease;
  }
  .btn-primary:active{ transform:scale(0.98); }

  .divider{ display:flex; align-items:center; gap:12px; margin:22px 0 18px; }
  .divider .line{ flex:1; height:1px; background:var(--line); }
  .divider span{ font-size:11px; color:rgba(43,38,32,0.4); text-transform:uppercase; letter-spacing:0.06em; }

  .social{ display:flex; gap:10px; }
  .social button{
    flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
    border:1px solid var(--line); background:#fff; border-radius:14px; padding:12px;
    font-size:13px; font-weight:600; color:var(--ink); cursor:pointer; font-family:inherit;
  }

  .switch{ text-align:center; margin-top:24px; font-size:13px; color:rgba(43,38,32,0.6); }
  .switch a{ color:var(--moss-deep); font-weight:700; text-decoration:none; }