/* ═══════════════════════════════════════════════════════════════
   IMAHE — welcome page
   Dog-eared login/register tabs · Inky hero · desktop cover spread
   ═══════════════════════════════════════════════════════════════ */

/* ── mobile-first ── */
.welcome-spread { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.welcome-cover { display: none; }

.welcome-hero { display: flex; align-items: center; gap: 14px; padding: 6px 4px 4px; }
.welcome-hero-speech { font-size: 18px; }

.welcome-formbox { display: flex; flex-direction: column; }

/* dog-eared page tabs — the folded-corner cut merges into the form panel */
.welcome-tabs {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 0 12px; margin-bottom: -2.5px;
  position: relative; z-index: 2;
}
.welcome-tab {
  position: relative;
  border: var(--border-ink);
  border-radius: 12px 12px 0 0;
  background: var(--paper-sunk); color: var(--newsprint-mute);
  font-family: var(--f-display); font-size: 18px; letter-spacing: 0.05em;
  padding: 8px 22px 9px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: background 0.12s, color 0.12s, padding 0.12s, font-size 0.12s;
}
.welcome-tab::before { /* dog-ear fold */
  content: ''; position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--locked-hatch);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.welcome-tab.is-on {
  background: var(--paper-2); color: var(--ink);
  border-bottom-color: var(--paper-2);
  padding-top: 11px; padding-bottom: 12px;
  font-size: 20px;
}
.welcome-tab.is-on::before { background: var(--riso-pink); }

.welcome-form { display: flex; flex-direction: column; gap: 14px; }
.welcome-form .panel-title { margin-bottom: 0; }
.welcome-form.is-shaking { animation: shake 0.35s; }
.welcome-form::after { /* halftone corner flair */
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 46px; height: 46px; border-radius: 50%;
  background-image: radial-gradient(var(--riso-pink-2) 1.5px, transparent 1.7px);
  background-size: 7px 7px; opacity: 0.45;
  pointer-events: none;
}

.welcome-actions { margin: 6px 0 8px; }

.welcome-switch {
  background: none; border: none; padding: 4px 0 0;
  align-self: center;
  font-family: var(--f-head); font-weight: 600; font-size: 13px;
  color: var(--riso-blue); text-decoration: underline; cursor: pointer;
}

/* ═══ DESKTOP ≥1024px — illustrated cover page + form page ═══ */
@media (min-width: 1024px) {
  .welcome-spread {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 0; padding-top: 0;
  }
  .welcome-hero { display: none; }

  .welcome-formside { display: flex; flex-direction: column; justify-content: center; }
  .welcome-formbox { width: 100%; max-width: 400px; margin: 0 auto; }

  .welcome-cover {
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden; min-height: 640px;
    background-image:
      radial-gradient(var(--halftone) 1.3px, transparent 1.5px),
      linear-gradient(160deg, var(--paper-2) 55%, #FFE9EE 100%);
    background-size: 9px 9px, 100% 100%;
  }
  .welcome-cover::before { /* sunburst rays */
    content: ''; position: absolute; inset: -45%;
    background: repeating-conic-gradient(from 6deg at 40% 42%, rgba(255, 77, 109, 0.09) 0deg 7deg, transparent 7deg 15deg);
    pointer-events: none;
  }

  .wc-hero { position: relative; z-index: 1; max-width: 400px; }
  .wc-kicker { font-size: 11px; letter-spacing: 0.14em; color: var(--newsprint-mute); margin-bottom: 8px; }
  .wc-title {
    font-size: clamp(88px, 8.5vw, 124px); line-height: 0.88; color: var(--ink);
    text-shadow: 5px 5px 0 var(--riso-pink), 10px 10px 0 rgba(26, 23, 18, 0.14);
  }
  .wc-sub {
    margin-top: 14px; max-width: 300px;
    font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink-soft);
  }
  .wc-inky-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
  .wc-speech { font-size: 19px; }

  /* floating sample "panels" — pure CSS gradients, no images */
  .wc-panel {
    position: absolute; z-index: 2;
    width: 150px; height: 192px;
    border: var(--border-ink); border-radius: 12px;
    box-shadow: var(--shadow-harder);
    display: flex; align-items: flex-end;
    padding: 10px;
    animation: wc-float 5.5s ease-in-out infinite;
  }
  .wc-tag {
    font-family: var(--f-display); font-size: 13px; letter-spacing: 0.06em;
    background: var(--paper-2); border: 2px solid var(--ink-line);
    border-radius: 8px; padding: 1px 9px;
    box-shadow: 2px 2px 0 var(--panel-shadow);
  }
  .wc-panel--1 { /* manga sunset + speed lines */
    top: 7%; right: 6%; rotate: 6deg;
    background:
      radial-gradient(circle at 68% 24%, #FFF3B0 0 15%, transparent 16%),
      repeating-linear-gradient(105deg, transparent 0 16px, rgba(255, 255, 255, 0.22) 16px 19px),
      linear-gradient(180deg, #FF7A93, #FFC531 72%, #F0A500);
  }
  .wc-panel--2 { /* night city dash */
    top: 40%; right: 12%; width: 128px; height: 164px; rotate: -7deg;
    animation-delay: 1.4s;
    background:
      linear-gradient(0deg, rgba(26, 23, 18, 0.35) 0 24%, transparent 25%),
      repeating-linear-gradient(90deg, transparent 0 17px, rgba(255, 255, 255, 0.16) 17px 20px),
      linear-gradient(205deg, #6E82FF, #3D5AFE 55%, #7A3DFF);
  }
  .wc-panel--3 { /* teal product spot */
    bottom: 5%; right: 30%; width: 138px; height: 150px; rotate: 4deg;
    animation-delay: 2.6s;
    background-image:
      radial-gradient(circle at 50% 56%, #0E9486 0 26%, transparent 27%),
      radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.6px),
      linear-gradient(180deg, #12B5A5, #0B8A7E);
    background-size: 100% 100%, 10px 10px, 100% 100%;
  }
}

@keyframes wc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
