:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --surface: #fff;
  --text: #2b211d;
  --muted: #6b635d;
  --primary: #b23a2e;
  --teal: #2b6e7a;
  --line: #e4ded8;
  font-family: 'Segoe UI', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); }

.splash {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 76px 24px 105px;
  background:
    radial-gradient(ellipse 48% 42% at 50% 44%, #ffffff 0%, #fcfaf8 55%, transparent 100%),
    linear-gradient(140deg, #faf8f5 0%, #f7f3ef 68%, #f4efea 100%);
}

.splash::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(#b23a2e16 .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 44%, #000 0%, transparent 100%);
}

.splash-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(100%, 480px); text-align: center; }

.splash-stage { position: relative; display: grid; place-items: center; width: 260px; height: 240px; margin-bottom: 13px; }
.splash-stage::before {
  content: '';
  position: absolute;
  width: 167px;
  height: 167px;
  border-radius: 50%;
  background: #b23a2e14;
  filter: blur(25px);
  animation: stage-glow 4s ease-in-out infinite;
}

.stage-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.stage-ring-outer { width: 222px; height: 222px; border: 1px solid #ddcfc7; opacity: .66; animation: ring-reveal 1.6s ease-out both; }
.stage-ring-inner { width: 179px; height: 179px; border: 1px dashed #dfc9c0; opacity: .7; animation: ring-reveal 1.8s .28s ease-out both, ring-turn 18s 2s linear infinite; }
.stage-orbit { position: absolute; width: 222px; height: 222px; border-radius: 50%; animation: ring-turn 5s linear infinite; }
.orbit-dot { position: absolute; top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px #b23a2e16; }
.stage-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: .7; animation: spark 3.5s ease-in-out infinite; }
.stage-spark-one { top: 43px; right: 17px; }
.stage-spark-two { bottom: 32px; left: 12px; width: 3px; height: 3px; animation-delay: 1.25s; }

.stage-paper { position: absolute; width: 94px; height: 106px; border: 1px solid #eadbd4; border-radius: 8px; background: #fff; box-shadow: 0 7px 18px #5a3c2a0c; }
.stage-paper::before, .stage-paper::after { content: ''; position: absolute; left: 16px; height: 3px; border-radius: 3px; background: #e7d8d1; }
.stage-paper::before { top: 24px; width: 58px; }
.stage-paper::after { top: 34px; width: 42px; }
.stage-paper-back { transform: translate(-21px, -13px) rotate(-13deg); animation: paper-back 5s ease-in-out both; }
.stage-paper-front { transform: translate(20px, -15px) rotate(12deg); animation: paper-front 5s ease-in-out both; }

.splash-mark {
  position: relative;
  z-index: 2;
  display: block;
  width: 116px;
  height: 116px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--primary);
  box-shadow: 0 17px 34px #8c382d2b, 0 2px 5px #8c382d18;
  animation: mark-arrive 1.35s cubic-bezier(.2,.75,.2,1) both, mark-float 3.5s 1.35s ease-in-out infinite;
}

.splash-mark img { position: absolute; width: 534px; max-width: none; height: auto; left: -46px; top: -23px; }
.splash-center h1 { margin: 0 0 10px; font-size: 29px; font-weight: 700; letter-spacing: -.055em; }
.splash-message { max-width: 365px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.retry-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 26px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 13px #b23a2e24; }
.retry-button:hover { background: #943027; }
.retry-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.splash-footer { position: absolute; z-index: 1; bottom: 33px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #6b635d; font-size: 11px; }
.splash-footer img { width: 23px; height: 23px; object-fit: contain; margin-left: 3px; }
.splash-footer strong { color: #253451; font-size: 13px; letter-spacing: -.02em; }

.login-details { padding: clamp(72px, 9vw, 120px) 24px 110px; border-top: 1px solid var(--line); background: #fff; }
.details-inner { width: min(100%, 850px); margin: 0 auto; }
.details-eyebrow { margin: 0 0 19px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.details-inner h2 { max-width: 620px; margin: 0 0 18px; font-size: clamp(31px, 3.4vw, 47px); line-height: 1.12; letter-spacing: -.052em; }
.details-intro { max-width: 610px; margin: 0; color: #645c56; font-size: 15px; line-height: 1.7; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; margin-top: 70px; }
.details-grid article { padding-top: 22px; border-top: 1px solid var(--line); }
.detail-number { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.details-grid h3 { margin: 18px 0 10px; font-size: 18px; letter-spacing: -.035em; }
.details-grid p { max-width: 330px; margin: 0; color: #645c56; font-size: 13px; line-height: 1.65; }

@keyframes mark-arrive { 0% { opacity: 0; transform: translateY(28px) scale(.75) rotate(-8deg); } 55% { opacity: 1; transform: translateY(-8px) scale(1.05) rotate(2deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes stage-glow { 0%, 100% { opacity: .6; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ring-reveal { from { opacity: 0; transform: scale(.7); } to { opacity: .7; transform: scale(1); } }
@keyframes ring-turn { to { transform: rotate(360deg); } }
@keyframes spark { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .8; transform: scale(1.45); } }
@keyframes paper-back { 0% { opacity: 0; transform: translate(-80px, -35px) rotate(-22deg); } 16% { opacity: 1; transform: translate(-21px, -13px) rotate(-13deg); } 40%, 65% { opacity: 1; transform: translate(-21px, -13px) rotate(-13deg); } 82%, 100% { opacity: .55; transform: translate(-7px, 0) rotate(-5deg); } }
@keyframes paper-front { 0%, 8% { opacity: 0; transform: translate(78px, -34px) rotate(24deg); } 24% { opacity: 1; transform: translate(20px, -15px) rotate(12deg); } 48%, 72% { opacity: 1; transform: translate(20px, -15px) rotate(12deg); } 91%, 100% { opacity: .55; transform: translate(7px, 0) rotate(5deg); } }

@media (max-width: 600px) {
  .splash { padding-bottom: 84px; }
  .splash-stage { width: 235px; height: 220px; transform: scale(.88); margin: -6px 0 2px; }
  .splash-center h1 { font-size: 26px; }
  .splash-footer { bottom: 27px; }
  .login-details { padding: 75px 25px 85px; }
  .details-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-stage *, .splash-stage::before { animation: none !important; }
  .splash-mark { opacity: 1; transform: none; }
  .stage-paper-back { opacity: .55; transform: translate(-12px, -8px) rotate(-8deg); }
  .stage-paper-front { opacity: .55; transform: translate(12px, -8px) rotate(8deg); }
}
