/* The 2026-11-17 sign-in look (Matt Grybel's "sign-in-update" mockup, built
   at the owner's request): the same scene, brighter, with gold dust rolling
   in along the bottom — and a card with a lit gold edge that is compact
   enough to fit one screen.

   Shared by login.html and signup.html and loaded AFTER each page's own
   <style>, so these rules win at equal specificity. Nothing here changes a
   selector the pages' scripts or tests rely on; it only restyles them. The
   Clerk form inside the card is made compact to match by auth-glow.js. */

/* ---------- the scene ---------- */
html{background:#060504;}
body{background:none;}
/* the photograph, lifted: the mockup's city, map and candles are lit, not dim */
html::before{
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:url('/assets/photos/v4-login-bg.webp') center center / cover no-repeat;
  filter:brightness(1.5) saturate(1.3) contrast(1.05);
}
body::before{
  background:
    radial-gradient(ellipse 46% 60% at 0% 58%, rgba(255,176,64,.20), transparent 62%),
    radial-gradient(ellipse 52% 56% at 86% 34%, rgba(255,190,80,.16), transparent 64%),
    radial-gradient(ellipse 70% 40% at 50% 104%, rgba(212,175,55,.20), transparent 70%);
}
/* gold dust along the bottom — gold on black, so `screen` leaves only the light */
body::after{
  content:''; position:fixed; left:0; right:0; bottom:0; height:46vh; z-index:0; pointer-events:none;
  /* 34%: the ribbons sit in the middle of the picture; this slides them down to the bottom edge */
  background:url('/assets/photos/v5-bg-4-md.webp') center 34% / cover no-repeat;
  mix-blend-mode:screen; opacity:.82;
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
  mask-image:linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
}

/* ---------- the card ---------- */
.stage{max-width:524px;}
.stage::before{
  inset:-10% -10%;
  background:radial-gradient(ellipse at 50% 42%, rgba(255,200,95,.30), transparent 66%);
  filter:blur(50px);
}
.card{
  padding:32px 42px 20px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(28,21,10,.86) 0%, rgba(10,8,5,.93) 60%, rgba(7,6,4,.95) 100%);
  border:1.5px solid rgba(248,218,145,.9);
  -webkit-backdrop-filter:blur(18px) saturate(115%); backdrop-filter:blur(18px) saturate(115%);
  box-shadow:
    0 0 0 1px rgba(212,175,55,.22),
    0 0 30px -2px rgba(255,200,95,.7),
    0 0 120px -22px rgba(212,175,55,.85),
    0 60px 120px -50px rgba(0,0,0,.95),
    inset 0 0 38px -14px rgba(255,222,150,.5);
}
/* the two places the light catches: top and bottom centre */
.card::before, .card::after{
  content:''; position:absolute; left:24%; right:24%; height:2.5px; border-radius:3px; pointer-events:none;
  background:linear-gradient(90deg, transparent, #ffe9ad 28%, #fffbe9 50%, #ffe9ad 72%, transparent);
  filter:drop-shadow(0 0 8px rgba(255,214,120,1)) drop-shadow(0 0 24px rgba(255,190,80,.85));
}
.card::before{top:-2px;}
.card::after{bottom:-2px; left:18%; right:18%;}

.brand{margin-bottom:12px;}
.brand-logo{height:54px;}
h1{font-size:clamp(28px, 4.6vw, 40px); text-shadow:0 0 34px rgba(255,205,105,.28);}
.rule{
  width:92px; height:2px; margin:12px auto 0; border-radius:2px;
  background:linear-gradient(90deg, transparent, #ffe9ad, transparent);
  filter:drop-shadow(0 0 6px rgba(255,205,105,.95));
}
.rule::after{display:none;}
.sub{margin:14px auto 16px; font-size:15.5px; line-height:1.55; color:#efe6d2; max-width:36ch;}
.pay-email-hint{
  max-width:none; margin:0 auto 14px; padding:10px 14px; border-radius:14px;
  font-size:13.5px; line-height:1.5; color:#efe6d2;
  background:rgba(44,33,12,.5); border:1px solid rgba(233,194,86,.62);
  box-shadow:inset 0 0 18px -10px rgba(255,222,150,.5);
}
.pay-email-hint strong{color:#fff3c9; font-weight:700;}
.mc-toggle{color:#f6dc8f; font-weight:700;}
.mail-check{max-width:none;}
.loading-note{color:#b8ae97; padding:22px 0;}
/* The lines under the card sit on top of the gold dust, and where a bright
   ribbon crossed behind them they were hard to read (seen on the live page
   the day this shipped). A soft dark pool behind the block, a shadow on the
   letters and brighter text keep them readable wherever the ribbons fall. */
.below{position:relative; margin-top:22px; text-shadow:0 1px 2px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.9);}
.below::before{
  content:''; position:absolute; inset:-12px -40px -16px; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse 60% 66% at 50% 50%, rgba(6,5,4,.82) 0%, rgba(6,5,4,.64) 48%, transparent 100%);
  filter:blur(8px);
}
.back-link{color:#d6ccb4;}
.fine{color:#c4baa3;}
.fine a{color:#e4dbc6;}

/* A browser that fills in a saved email paints the field pale blue-white —
   the one thing on the card that looked pasted in from another site. Same
   field, in the card's own colours. (The long transition is the standard way
   to hold off Chrome's own background.) */
.card input:-webkit-autofill, .card input:-webkit-autofill:hover, .card input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f4ecdc !important; caret-color:#f4ecdc;
  -webkit-box-shadow:0 0 0 1000px #17120a inset !important; box-shadow:0 0 0 1000px #17120a inset !important;
  border:1px solid rgba(233,194,86,.30) !important;
  transition:background-color 99999s ease-out 0s;
}

/* the three doors on the login page keep their colours; they only sit closer */
.dc-btn{margin-bottom:10px; padding:14px 16px;}
/* …and while they are showing, the card holds no empty room for the form. The
   page reserves 150px for it so the card does not jump while it loads; under
   the doors that was a blank band at the bottom of the lit card. It comes
   back the moment a door is chosen (the page takes `visible` off). */
.door-choice.visible ~ #clerk-sign-in{min-height:0;}

@media (max-width:520px){
  body{padding:14px;}
  .card{padding:28px 20px 18px; border-radius:24px;}
  .brand{margin-bottom:10px;}
  .brand-logo{height:48px;}
  .sub{font-size:14.5px; margin:14px auto 18px;}
  body::after{height:38vh;}
  .below::before{inset:-12px -10px -16px;}
}
@media (max-height:760px) and (min-width:521px){
  /* a short laptop screen: the card starts a little higher so the button is in view */
  body{align-items:flex-start; padding-top:18px;}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}
