/* ============================================================
   SIGNIN.CSS
   Static deco-cards, ambient background, split login panel
   Specific to frontendV2/signin.html
   ============================================================ */

/* ── SCENE — static backdrop, no 3D compositing ── */
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* World — static container, no preserve-3d, no animation */
.world {
  position: absolute;
  inset: 0;
}

/* ── Grid floor — static perspective grid ── */
.grid-floor {
  position: absolute;
  bottom: -10vh;
  left: -30vw;
  width: 160vw;
  height: 80vh;
  background-image:
    linear-gradient(rgba(205,51,62,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,4,61,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(75deg);
  transform-origin: bottom center;
  opacity: 0.5;
}

/* ── Orbs — static glows, no blur filter, using radial-gradient only ── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb-1 {
  width: clamp(300px, 35vw, 550px);
  height: clamp(300px, 35vw, 550px);
  background: radial-gradient(circle, rgba(205,51,62,0.18), transparent 70%);
  top: -15%; left: -10%;
}
.orb-2 {
  width: clamp(250px, 30vw, 450px);
  height: clamp(250px, 30vw, 450px);
  background: radial-gradient(circle, rgba(30,6,74,0.28), transparent 70%);
  top: 25%; right: -12%;
}
.orb-3 {
  width: clamp(200px, 24vw, 350px);
  height: clamp(200px, 24vw, 350px);
  background: radial-gradient(circle, rgba(96,4,61,0.16), transparent 70%);
  bottom: -5%; left: 30%;
}
.orb-4 {
  width: clamp(120px, 14vw, 200px);
  height: clamp(120px, 14vw, 200px);
  background: radial-gradient(circle, rgba(205,51,62,0.09), transparent 70%);
  top: 55%; left: 8%;
}

/* ══════════════════════════════════════════
   DECO CARDS — static 3D tilt, no animation
   ══════════════════════════════════════════ */
.deco-card {
  position: absolute;
  width: clamp(220px, 20vw, 290px);
  height: clamp(132px, 12vw, 172px);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  overflow: hidden;
}

/* Card 1 — Tyche Red/Crimson — static tilt */
.deco-card-1 {
  background: linear-gradient(135deg, #CD333E 0%, #a02832 40%, #7c1d26 100%);
  border: none;
  top: 11%; left: 5%;
  transform: rotateY(14deg) rotateX(-4deg);
  box-shadow: 0 20px 50px rgba(205,51,62,0.18);
}
.deco-card-1::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

/* Card 2 — Tyche Full Gradient — static tilt */
.deco-card-2 {
  background: linear-gradient(145deg, var(--red) 0%, #a02035 25%, var(--mauve) 55%, var(--navy) 100%);
  border: none;
  top: 48%; right: 5%;
  transform: rotateY(-12deg) rotateX(6deg);
  box-shadow: 0 20px 50px rgba(96,4,61,0.2);
}
.deco-card-2::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}

/* Card 3 — Grey / Silver — static tilt */
.deco-card-3 {
  background: linear-gradient(135deg, #9ca0af 0%, #6c7080 40%, #4a4e5e 100%);
  border: none;
  bottom: 9%; left: 20%;
  width: clamp(180px, 16vw, 240px);
  height: clamp(108px, 10vw, 144px);
  transform: rotateY(7deg) rotateX(-8deg);
  opacity: 0.75;
  box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

/* Card inner elements */
.dc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.dc-chip {
  width: 38px; height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d4a853 0%, #f0d78c 50%, #d4a853 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.dc-chip::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.dc-contactless {
  position: absolute;
  top: 24px;
  left: 52px;
  opacity: 0.4;
}

.dc-bottom { position: relative; z-index: 1; }
.dc-number {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.dc-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}
.dc-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
}
.dc-name {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  margin-top: 1px;
}

/* Mastercard circles */
.dc-mc { display: flex; align-items: center; }
.dc-mc-r, .dc-mc-o { width: 26px; height: 26px; border-radius: 50%; }
.dc-mc-r { background: #EB001B; }
.dc-mc-o { background: #F79E1B; margin-left: -8px; opacity: 0.85; }
.dc-mc-sm .dc-mc-r, .dc-mc-sm .dc-mc-o { width: 20px; height: 20px; }
.dc-mc-sm .dc-mc-o { margin-left: -6px; }

/* Tyche watermark */
.dc-watermark {
  position: absolute;
  right: -8px; bottom: -12px;
  opacity: 0.08;
  z-index: 0;
}
.dc-watermark svg { width: 120px; height: auto; }
.deco-card-3 .dc-watermark svg { width: 90px; }

/* Tyche brand name on cards */
.dc-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

/* Shimmer — static highlight instead of animation */
.dc-shimmer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  z-index: 2;
  border-radius: 16px;
}

/* ── Particles — hidden, disabled for performance ── */
.particles {
  display: none;
}
.particle {
  display: none;
}

/* ══════════════════════════════════════════
   MAIN LOGIN LAYOUT
   ══════════════════════════════════════════ */
.signin-main {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
}
.login-wrap {
  display: flex;
  gap: 0;
  max-width: clamp(340px, 90vw, 940px);
  width: 100%;
  animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Left Panel — Full Tyche Gradient ── */
.panel-left {
  flex: 1;
  background: linear-gradient(155deg, var(--red) 0%, #a02035 20%, var(--mauve) 50%, #3a0240 75%, var(--navy) 100%);
  border-radius: 24px 0 0 24px;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 580px;
}
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.06) 0%, transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,0.2) 0%, transparent 50%);
}
.panel-left .edge-glow {
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent 5%, rgba(205,51,62,0.25) 30%, rgba(96,4,61,0.2) 70%, transparent 95%);
}

.brand { position: relative; z-index: 2; }
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.brand-logo-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.brand-logo-icon svg { height: 24px; width: auto; }
.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}
.brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.panel-headline { position: relative; z-index: 2; }
.panel-headline h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.panel-headline h2 span {
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.panel-headline p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 260px;
}

/* Payment partners */
.panel-partners {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}
.panel-partners span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  font-weight: 500;
}
.partner-logos { display: flex; align-items: center; gap: 10px; }
.partner-mc { display: flex; align-items: center; }
.partner-mc-r, .partner-mc-o { width: 22px; height: 22px; border-radius: 50%; }
.partner-mc-r { background: #EB001B; }
.partner-mc-o { background: #F79E1B; margin-left: -6px; opacity: 0.85; }
.partner-visa {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  font-style: italic;
}

.panel-stats {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  font-weight: 500;
}
.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ── Right Panel ── */
.panel-right {
  flex: 1.2;
  background: var(--navy-card);
  border-radius: 0 24px 24px 0;
  padding: 44px 42px;
  border: 1px solid var(--navy-border);
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.panel-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--red) 35%, var(--mauve) 65%, transparent 90%);
  opacity: 0.3;
}

.form-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.form-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 34px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — SIGNIN SPECIFIC
   ══════════════════════════════════════════ */

/* --- Mobile (<=700px) --- */
@media (max-width: 700px) {
  .scene { display: none; }

  .signin-main {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
    background:
      radial-gradient(ellipse 70% 50% at 40% 8%, rgba(160,20,55,0.7) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 85% 70%, rgba(140,30,30,0.5) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 75% 15%, rgba(25,10,80,0.6) 0%, transparent 70%),
      radial-gradient(ellipse 80% 60% at 30% 50%, rgba(80,5,55,0.5) 0%, transparent 70%),
      radial-gradient(ellipse 100% 80% at 50% 100%, rgba(10,3,25,0.9) 0%, transparent 70%),
      linear-gradient(160deg, #2a0530 0%, #1a0420 30%, #120320 60%, #0a0118 100%);
  }

  .login-wrap {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    animation: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .panel-left { display: none; }

  .panel-right {
    border-radius: 0;
    border: none;
    padding: 0 28px;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    animation: mobFormIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes mobFormIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .panel-right::before { display: none; }

  .form-title {
    font-size: 30px;
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
  }
  .form-subtitle {
    margin-bottom: 32px;
    font-size: 14px;
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
  }
  .auth-dark .field {
    margin-bottom: 18px;
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }
  .auth-dark .field:nth-child(2) { animation-delay: 0.36s; }
  .auth-dark .options-row {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
  }
  .auth-dark .btn-login {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
  }
  .auth-dark .signup-row {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
  }

  /* Subtle separator line */
  .form-subtitle::after {
    content: '';
    display: block;
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--red), var(--mauve));
    border-radius: 2px;
    margin-top: 16px;
    opacity: 0.5;
  }
}

/* --- Small phone (<=400px) --- */
@media (max-width: 400px) {
  .panel-right { padding: 0 22px; }
  .form-title { font-size: 27px; }
}

/* --- Tiny phone (<=350px) --- */
@media (max-width: 350px) {
  .panel-right { padding: 0 18px; }
  .form-title { font-size: 24px; }
}

/* --- Tablet portrait (701px-900px) --- */
@media (min-width: 701px) and (max-width: 900px) {
  .scene { display: none; }

  .signin-main {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 20px;
    background:
      radial-gradient(ellipse 70% 50% at 40% 8%, rgba(160,20,55,0.7) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 85% 70%, rgba(140,30,30,0.5) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 75% 15%, rgba(25,10,80,0.6) 0%, transparent 70%),
      radial-gradient(ellipse 80% 60% at 30% 50%, rgba(80,5,55,0.5) 0%, transparent 70%),
      radial-gradient(ellipse 100% 80% at 50% 100%, rgba(10,3,25,0.9) 0%, transparent 70%),
      linear-gradient(160deg, #2a0530 0%, #1a0420 30%, #120320 60%, #0a0118 100%);
  }

  .login-wrap {
    flex-direction: column;
    max-width: 540px;
    margin: 0 auto;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .panel-left { display: none; }

  .panel-right {
    border-radius: 24px;
    border: 1px solid var(--navy-border);
    padding: 48px 44px;
    background: var(--navy-card);
  }

  .auth-dark .mob-form-brand {
    display: flex;
    margin-bottom: 32px;
  }
}

/* --- Tablet landscape (901px-1024px) --- */
@media (min-width: 901px) and (max-width: 1024px) {
  .deco-card { display: none; }
  .grid-floor { display: none; }

  .signin-main { padding: 20px; }

  .login-wrap {
    max-width: 820px;
  }

  .panel-left {
    padding: 36px 28px;
    min-height: 520px;
  }
  .panel-headline h2 { font-size: 26px; }
  .panel-stats { gap: 14px; }
  .stat-num { font-size: 18px; }

  .panel-right {
    padding: 36px 32px;
  }
}

/* --- Large screens (1400px+) --- */
@media (min-width: 1400px) {
  .login-wrap {
    max-width: clamp(940px, 65vw, 1100px);
  }
  .deco-card {
    width: clamp(290px, 20vw, 340px);
    height: clamp(172px, 12vw, 200px);
  }
  .deco-card-3 {
    width: clamp(240px, 16vw, 280px);
    height: clamp(144px, 10vw, 168px);
  }
}
