
/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
:root {
  --red:  #c00b28;
  --red2: #e8102f;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body {
  width:100%; height:100%;
  height:-webkit-fill-available;
  background:#000;
  color:#fff;
  font-family:"Helvetica Neue",Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
  user-select:none; -webkit-user-select:none;
}

/* ═══════════════════════════════════════════
   SPLASH
═══════════════════════════════════════════ */
#splash {
  position:fixed; inset:0;
  background:#000;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  z-index:100;
  gap:0;
}
#splash.exit {
  animation: splashExit 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes splashExit {
  0%   { opacity:1; transform:scale(1); }
  100% { opacity:0; transform:scale(1.04); }
}

/* MEGA GLOBAL label */
.sp-brand {
  font-size:10px; font-weight:700;
  letter-spacing:0.52em;
  color:#2a2a2a;
  text-transform:uppercase;
  margin-bottom:18px;
  opacity:0;
  animation: fadeUp 0.5s ease 0.3s forwards;
}

/* SPECTRUM — letters stagger in */
.sp-wordmark {
  display:flex; gap:0;
  line-height:1;
  overflow:hidden;
}
.sp-letter {
  font-size:36px;
  font-weight:800;
  letter-spacing:0.18em;
  color:#fff;
  text-transform:uppercase;
  opacity:0;
  transform:translateY(20px);
  animation:letterIn 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}
/* Stagger each letter */
.sp-letter:nth-child(1) { animation-delay:0.05s }
.sp-letter:nth-child(2) { animation-delay:0.11s }
.sp-letter:nth-child(3) { animation-delay:0.17s }
.sp-letter:nth-child(4) { animation-delay:0.23s }
.sp-letter:nth-child(5) { animation-delay:0.29s }
.sp-letter:nth-child(6) { animation-delay:0.35s }
.sp-letter:nth-child(7) { animation-delay:0.41s }
.sp-letter:nth-child(8) { animation-delay:0.47s }

@keyframes letterIn {
  to { opacity:1; transform:translateY(0); }
}

/* Red underline that draws itself */
.sp-line {
  width:0; height:2px;
  background:var(--red);
  margin-top:20px;
  animation: lineGrow 0.6s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}
@keyframes lineGrow {
  to { width:100%; }
}

/* Tagline */
.sp-tagline {
  font-size:9px; font-weight:600;
  letter-spacing:0.32em;
  color:#2a2a2a;
  text-transform:uppercase;
  margin-top:16px;
  opacity:0;
  animation: fadeUp 0.5s ease 0.9s forwards;
}

/* Prism mark — bottom of splash */
.sp-prism {
  position:absolute;
  bottom:60px;
  display:flex; align-items:flex-end; gap:3px;
  opacity:0;
  animation: fadeUp 0.6s ease 1.0s forwards;
}
.sp-prism-bar {
  width:2px; background:var(--red); border-radius:1px;
  animation:prismPulse 1.8s ease-in-out infinite;
  transform-origin:bottom;
}
.sp-prism-bar:nth-child(1){height:6px;  animation-delay:0s;    opacity:0.2; background:#444}
.sp-prism-bar:nth-child(2){height:12px; animation-delay:0.14s; opacity:0.4; background:#888}
.sp-prism-bar:nth-child(3){height:20px; animation-delay:0.26s; opacity:0.7;}
.sp-prism-bar:nth-child(4){height:26px; animation-delay:0.20s; opacity:1;   background:var(--red2)}
.sp-prism-bar:nth-child(5){height:16px; animation-delay:0.08s; opacity:0.5;}
.sp-prism-bar:nth-child(6){height:9px;  animation-delay:0s;    opacity:0.25; background:#888}
.sp-prism-bar:nth-child(7){height:5px;  animation-delay:0s;    opacity:0.15; background:#444}
@keyframes prismPulse {
  0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.4)}
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════
   LOGIN
═══════════════════════════════════════════ */
#login {
  display:none;
  position:fixed; inset:0;
  flex-direction:column;
  background:#000;
  /* iOS safe area */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#login.enter {
  display:flex;
  animation:loginEnter 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes loginEnter {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Top accent — thin red line */
.l-topline {
  height:2px;
  background:var(--red);
  flex-shrink:0;
}

/* Main area */
.l-body {
  flex:1;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:0 40px;
  gap:0;
}

/* Wordmark block */
.l-wordmark {
  text-align:center;
  margin-bottom:56px;
}
.l-brand {
  font-size:9px; font-weight:700;
  letter-spacing:0.52em; color:#2a2a2a;
  text-transform:uppercase; margin-bottom:12px;
}
.l-name {
  font-size:32px; font-weight:800;
  letter-spacing:0.2em; color:#fff;
  text-transform:uppercase; line-height:1;
}
.l-rule {
  width:28px; height:1px;
  background:var(--red);
  margin:16px auto 14px;
}
.l-tagline {
  font-size:8.5px; font-weight:600;
  letter-spacing:0.26em; color:#282828;
  text-transform:uppercase;
}

/* Form block */
.l-form {
  width:100%; max-width:320px;
  display:flex; flex-direction:column;
}

/* Field — bottom-border only, Bloomberg style */
.l-field {
  position:relative;
  margin-bottom:32px;
}
.l-field-label {
  display:block;
  font-size:8.5px; font-weight:700;
  letter-spacing:0.22em; color:#333;
  text-transform:uppercase;
  margin-bottom:14px;
}
.l-input {
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid #222;
  color:#fff;
  font-size:18px;
  font-weight:300;
  letter-spacing:0.12em;
  padding:0 0 14px 0;
  outline:none;
  border-radius:0;
  -webkit-appearance:none;
  font-family:inherit;
  transition:border-bottom-color 0.25s;
  caret-color:var(--red);
}
.l-input:focus { border-bottom-color:#555; }
.l-input::placeholder {
  color:#222; font-size:13px;
  font-weight:400; letter-spacing:0.06em;
}

/* Error */
.l-err {
  font-size:9.5px; color:var(--red);
  letter-spacing:0.08em;
  min-height:16px;
  margin-bottom:24px;
  text-align:center;
}

/* Enter button */
.l-btn {
  width:100%;
  background:var(--red); color:#fff; border:none;
  font-size:10.5px; font-weight:700;
  letter-spacing:0.28em; text-transform:uppercase;
  padding:18px 16px;
  cursor:pointer; border-radius:0;
  font-family:inherit; -webkit-appearance:none;
  position:relative; overflow:hidden;
  transition:background 0.15s, transform 0.1s;
}
.l-btn:active { background:#a00920; transform:scale(0.99); }

/* Button loading state */
.l-btn-text { transition:opacity 0.15s; }
.l-btn-dots {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  gap:5px; opacity:0; transition:opacity 0.15s;
}
.l-btn.loading .l-btn-text { opacity:0; }
.l-btn.loading .l-btn-dots { opacity:1; }
.l-dot {
  width:4px; height:4px; border-radius:50%;
  background:#fff; opacity:0.4;
  animation:dotBounce 0.9s ease-in-out infinite;
}
.l-dot:nth-child(1){animation-delay:0s}
.l-dot:nth-child(2){animation-delay:0.15s}
.l-dot:nth-child(3){animation-delay:0.3s}
@keyframes dotBounce {
  0%,80%,100%{transform:scale(1);opacity:0.4}
  40%{transform:scale(1.4);opacity:1}
}

.l-product-badge {
  display:inline-block; margin-top:10px;
  font-size:8px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
  color:#555; border:1px solid #1a1a1a; padding:3px 10px;
}
.l-switch { margin-top:20px; text-align:center; font-size:9px; color:#333; letter-spacing:0.08em; }
.l-switch a { color:#444; text-decoration:none; }
.l-switch a:hover { color:#777; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.l-contact {
  margin-top:36px; text-align:center;
  font-size:9px; letter-spacing:0.14em;
  color:#222; text-transform:uppercase; line-height:2.4;
}
.l-contact a { color:#333; text-decoration:none; }

/* Footer */
.l-footer {
  padding:16px 24px;
  padding-bottom:max(16px, env(safe-area-inset-bottom));
  border-top:1px solid #0d0d0d;
  display:flex; align-items:center;
  justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.l-footer-copy {
  font-size:8.5px; letter-spacing:0.1em;
  color:#222; text-transform:uppercase;
}
.l-footer-links {
  font-size:8.5px; letter-spacing:0.1em;
  color:#222; display:flex; gap:18px;
}
.l-footer-links a { color:#2a2a2a; text-decoration:none; }

#login {display:flex;min-height:100svh}
.l-err {color:#ff8a8a;font-size:13px}
.l-input {font-size:16px}
.login-field-label,.l-field-label {color:#aaa}
button:focus-visible,input:focus-visible {outline:2px solid #e6dbcf;outline-offset:2px}

.auth-switch {font-size: 12px; color: #a8a0a0}
.auth-switch a {color: #ebc7ca; text-decoration: underline; text-underline-offset: 4px}
#login.registration {overflow-y: auto}
.registration .l-body {flex: 1 0 auto; padding: 36px 24px}
.registration .l-wordmark {margin-bottom: 27px}
.registration .l-wordmark h1 {font-size: 17px; font-weight: 650; letter-spacing: .08em}
.registration .l-field {margin-bottom: 15px}
.registration .l-field-label {font-size: 11px; color: #beb4b4; margin-bottom: 7px}
.registration .l-input {font-size: 16px; padding-bottom: 8px; border-bottom-color: #50454a}
.registration .l-input:focus {border-bottom-color: #ebc7ca}
.registration .l-help {font-size: 11px; color: #a8a0a0; margin-top: 6px}
.registration .l-err {color: #ff9ca7; min-height: 0; margin-bottom: 9px}
.registration .l-err:empty {display: none}
.registration .l-delivery {margin: 0 0 16px; line-height: 1.55; overflow-wrap: anywhere}
