/* Email verification by code (.vc-*): the code box on the sign-in panel and
   the link-problem page. Mobile first; the box sits on the panel's blue. */
:root {
    --vc-brand: #4242d6;
    --vc-ink: #1c1c6e;
    --vc-body: #403d59;
    --vc-muted: #6e6a85;
    --vc-line: #e7e5f2;
    --vc-tint: #ecebff;
    --vc-danger: #b42318;
    --vc-danger-tint: #fdecea;
    --vc-ok: #2c7a51;
    --vc-ok-tint: #e7f5ed;
    --vc-warn: #b45309;
    --vc-warn-tint: #fff7e6;
}

/* The code box */
.vc { display: grid; gap: 8px; margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff; color: var(--vc-body); text-align: start; }
.vc__label { margin: 0; color: var(--vc-ink); font-size: 15px; font-weight: 700; }
.vc__row { display: flex; align-items: stretch; gap: 8px; }
.vc__input {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px;
    border: 1.5px solid var(--vc-line); border-radius: 12px; background: #fff;
    color: var(--vc-ink); font-size: 22px; font-weight: 700; letter-spacing: .18em; text-align: center;
    font-variant-numeric: tabular-nums;
}
.vc__input:focus { border-color: var(--vc-brand); outline: none; box-shadow: 0 0 0 3px var(--vc-tint); }
.vc__input.is-invalid { border-color: var(--vc-danger); }
.vc__input::placeholder { color: #c4c2d6; letter-spacing: .18em; }
.vc__submit {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
    background: var(--vc-brand); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.vc__submit:hover { background: #3634b8; }
.vc__submit:focus-visible { outline: 2px solid var(--vc-brand); outline-offset: 2px; }
.vc__submit:disabled { opacity: .7; cursor: progress; }
.vc__hint { margin: 0; color: var(--vc-muted); font-size: 13px; line-height: 1.5; }
.vc__error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--vc-danger); font-size: 13px; font-weight: 600; line-height: 1.5; }
.vc__error i { flex: none; font-size: 15px; line-height: 1; }
@media (max-width: 380px) {
    .vc__row { flex-direction: column; }
}

/* The link-problem page */
.vc-page { display: flex; justify-content: center; padding: 48px 16px 80px; }
.vc-card {
    display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 460px;
    padding: 28px 20px; border: 1px solid var(--vc-line); border-radius: 20px; background: #fff;
    text-align: center; box-shadow: 0 18px 40px -24px rgba(28, 28, 110, .35);
}
@media (min-width: 576px) { .vc-card { padding: 36px 32px; } }
.vc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--vc-tint); color: var(--vc-brand); font-size: 30px; line-height: 1; }
.vc-card__icon.is-expired { background: var(--vc-warn-tint); color: var(--vc-warn); }
.vc-card__title { margin: 0; color: var(--vc-ink); font-size: 22px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.vc-card__body { margin: 0; max-width: 40ch; color: var(--vc-body); font-size: 15px; line-height: 1.65; }
.vc-card .vc { width: 100%; margin-top: 4px; padding: 0; }
.vc-card__flash { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--vc-warn-tint); color: var(--vc-warn); font-size: 14px; font-weight: 600; text-align: start; }
.vc-card__flash.is-ok { background: var(--vc-ok-tint); color: var(--vc-ok); }
.vc-card__flash i { flex: none; font-size: 16px; line-height: 1; }
.vc-card__or { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; color: var(--vc-muted); font-size: 13px; }
.vc-card__or::before, .vc-card__or::after { content: ""; flex: 1; height: 1px; background: var(--vc-line); }
.vc-card form { width: 100%; }
.vc-card__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 48px; padding: 0 20px; border: 1px solid var(--vc-brand); border-radius: 999px;
    background: var(--vc-brand); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.vc-card__btn i { font-size: 17px; line-height: 1; }
.vc-card__btn.is-ghost { background: #fff; color: var(--vc-brand); }
.vc-card__btn:focus-visible { outline: 2px solid var(--vc-brand); outline-offset: 3px; }
.vc-card__link { color: var(--vc-brand); font-size: 14px; font-weight: 600; text-decoration: none; }
.vc-card__link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   The verification mascot (.vm-*), resources/views/components/verify-monster.blade.php
   Layers: .vm-figure grows with the digits (scale), .vm-motion acts
   (bounce, shake, hop), so the two never fight over one transform.
   ------------------------------------------------------------------ */
.vm { --vm-skin: #3b3458; --vm-belly: #6a5fa0; --vm-spike: #554b7a; --vm-glow: #2ee6f6; --vm-ink: #171229;
      display: block; width: 100%; height: auto; overflow: visible; }
.vm * { transform-box: view-box; }
.vm-shadow { fill: rgba(28, 28, 110, .14); transform-origin: 100px 190px; scale: calc(.78 + var(--vm-n, 0) * .045) 1; transition: scale .35s cubic-bezier(.34, 1.56, .64, 1); }
.vm-figure { transform-origin: 100px 190px; scale: calc(.78 + var(--vm-n, 0) * .045); transition: scale .35s cubic-bezier(.34, 1.56, .64, 1); }
.vm-motion { transform-origin: 100px 190px; }
.vm-skin { fill: var(--vm-skin); }
.vm-belly { fill: var(--vm-belly); }
.vm-stripe { fill: none; stroke: #574d8a; stroke-width: 3; stroke-linecap: round; }
.vm-snout { fill: #4b4274; }
.vm-dark { fill: var(--vm-ink); }
.vm-claws circle, .vm-tooth { fill: #fff; }
.vm-blush { fill: #ff6fb5; opacity: .5; }
.vm-mouth-fill { fill: #241a3f; stroke: var(--vm-ink); stroke-width: 2.5; stroke-linejoin: round; }
.vm-line { fill: none; stroke: var(--vm-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.vm-eye-white { fill: #fff; }
.vm-iris { fill: var(--vm-glow); }
.vm-shine { fill: #fff; }
.vm-lid { fill: var(--vm-skin); }
.vm-pupils { transition: translate .25s ease; }
.vm-arm { transform-origin: center; }
.vm-arm--l { rotate: 22deg; } .vm-arm--r { rotate: -22deg; }

.vm-spike { fill: var(--vm-spike); stroke: var(--vm-spike); stroke-width: 3; stroke-linejoin: round; transition: fill .25s, stroke .25s, filter .25s; }
.vm-spike-tip { fill: var(--vm-spike); }
.vm .vm-spike.is-on, .vm-spike-tip.is-on { fill: var(--vm-glow); stroke: #a5f6fd; filter: drop-shadow(0 0 4px var(--vm-glow)); }
.vm[data-lit="1"] .vm-spike:nth-child(-n+1),
.vm[data-lit="2"] .vm-spike:nth-child(-n+2),
.vm[data-lit="3"] .vm-spike:nth-child(-n+3),
.vm[data-lit="4"] .vm-spike:nth-child(-n+4),
.vm[data-lit="5"] .vm-spike:nth-child(-n+5),
.vm[data-lit="6"] .vm-spike,
.vm[data-lit="6"] .vm-spike-tip { fill: var(--vm-glow); stroke: #a5f6fd; filter: drop-shadow(0 0 4px var(--vm-glow)); }

/* Everything pose-specific starts hidden. */
.vm-mouth--grin, .vm-mouth--wobble, .vm-eyes-x, .vm-eyes-closed, .vm-sweat, .vm-smoke, .vm-question, .vm-zzz, .vm-shades,
.vm-lasers, .vm-sparks, .vm-confetti { opacity: 0; }
.vm-question, .vm-zzz text { fill: var(--vm-brand, #4242d6); font: 800 30px/1 system-ui, sans-serif; }
.vm-zzz text { font-size: 18px; fill: #6e6a85; }
.vm-sweat { fill: #8ff8ff; }
.vm-smoke circle { fill: #b9b5cc; }
.vm-shades path:first-child { fill: #0d0a1a; }
.vm-shades-glint { fill: #fff; opacity: .8; }

/* idle: breathing + a blink */
.vm.is-idle .vm-motion, .vm.is-typing .vm-motion { animation: vm-breathe 3.2s ease-in-out infinite; }
.vm .vm-lid { animation: vm-blink 4.6s infinite; }
.vm.is-bump .vm-motion { animation: vm-bump .32s cubic-bezier(.34, 1.56, .64, 1); }
.vm.is-full .vm-spikes, .vm.is-full .vm-spike-tip { animation: vm-charge-glow .8s ease-in-out infinite alternate; }
.vm.is-full .vm-mouth--smile { opacity: 0; } .vm.is-full .vm-mouth--grin { opacity: 1; }
.vm.is-checking .vm-motion { animation: vm-wiggle .5s ease-in-out infinite; }

/* confused: the link arrived broken */
.vm.is-confused .vm-motion { animation: vm-tilt 2.6s ease-in-out infinite; }
.vm.is-confused .vm-question { opacity: 1; animation: vm-float 2.6s ease-in-out infinite; }
.vm.is-confused .vm-pupils { translate: -3px -2px; }
.vm.is-confused .vm-brows { d: path("M67 60 L90 66 M133 66 L110 64"); }

/* sleep: the link expired */
.vm.is-sleep .vm-eyes { opacity: 0; } .vm.is-sleep .vm-eyes-closed { opacity: 1; }
.vm.is-sleep .vm-mouth--smile { opacity: 0; } .vm.is-sleep .vm-mouth--wobble { opacity: 1; }
.vm.is-sleep .vm-brows { opacity: 0; }
.vm.is-sleep .vm-motion { animation: vm-snore 3.6s ease-in-out infinite; }
.vm.is-sleep .vm-zzz { opacity: 1; }
.vm.is-sleep .vm-zzz text { animation: vm-zzz 3.6s ease-in-out infinite; }
.vm.is-sleep .vm-zzz text:nth-child(2) { animation-delay: .5s; } .vm.is-sleep .vm-zzz text:nth-child(3) { animation-delay: 1s; }

/* fail: wrong / expired code. Shake, eyes squeezed, smoke from the nose, spikes fizzle. */
.vm.is-fail .vm-motion { animation: vm-shake .6s cubic-bezier(.36, .07, .19, .97) both, vm-slump .4s .6s ease-out forwards; }
.vm.is-fail .vm-eyes { opacity: 0; } .vm.is-fail .vm-eyes-x { opacity: 1; }
.vm.is-fail .vm-mouth--smile { opacity: 0; } .vm.is-fail .vm-mouth--wobble { opacity: 1; }
.vm.is-fail .vm-brows { d: path("M67 67 L90 61 M133 67 L110 61"); }
.vm.is-fail .vm-sweat { animation: vm-sweat 1.6s .3s ease-in infinite; }
.vm.is-fail .vm-smoke circle { animation: vm-smoke 1.1s ease-out both; }
.vm.is-fail .vm-smoke { opacity: 1; }
.vm.is-fail .vm-smoke circle:nth-child(2) { animation-delay: .12s; } .vm.is-fail .vm-smoke circle:nth-child(3) { animation-delay: .24s; }
.vm.is-fail .vm-spike { animation: vm-fizzle .7s steps(2, jump-none) both; }

/* win: verified. Charge up, laser the badge, shades down, hop, confetti. */
.vm.is-win { --vm-n: 6; }
.vm.is-win .vm-figure { scale: 1; }
.vm.is-win .vm-spike, .vm.is-win .vm-spike-tip { animation: vm-spike-on .3s both; }
.vm.is-win .vm-spike:nth-child(2) { animation-delay: .08s; } .vm.is-win .vm-spike:nth-child(3) { animation-delay: .16s; }
.vm.is-win .vm-spike:nth-child(4) { animation-delay: .24s; } .vm.is-win .vm-spike:nth-child(5) { animation-delay: .32s; }
.vm.is-win .vm-spike:nth-child(6) { animation-delay: .4s; } .vm.is-win .vm-spike-tip { animation-delay: .48s; }
.vm.is-win .vm-motion { animation: vm-crouch .6s ease-in-out both, vm-recoil .9s .75s ease-in-out both, vm-hop .55s 2.35s cubic-bezier(.34, 1.56, .64, 1) both, vm-breathe 3.2s 3s ease-in-out infinite; }
.vm.is-win .vm-pupils { translate: 3px 1px; }
.vm.is-win .vm-iris { animation: vm-eye-flash 1.3s .55s both; }
.vm.is-win .vm-mouth--smile { opacity: 0; } .vm.is-win .vm-mouth--grin { opacity: 1; }
.vm.is-win .vm-brows { d: path("M67 66 L90 70 M133 66 L110 70"); }
.vm.is-win .vm-shades { animation: vm-shades .6s 2.05s cubic-bezier(.34, 1.56, .64, 1) both; }
.vm-lasers path { fill: none; stroke: #2ee6f6; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 190; filter: drop-shadow(0 0 6px #2ee6f6); }
.vm-lasers .vm-laser-core { stroke: #fff; stroke-width: 2.5; filter: none; }
.vm.is-win .vm-lasers { animation: vm-laser-life 1.35s .7s both; }
.vm.is-win .vm-lasers path { animation: vm-laser-draw .22s .7s ease-in both; }
.vm-badge { opacity: 0; transform-origin: 292px 101px; }
.vm-badge-burst { fill: #ffd166; }
.vm-badge-ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 4 5; }
.vm-badge-check { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.vm.is-win .vm-badge { animation: vm-badge-pop .55s .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.vm.is-win .vm-badge-burst { transform-origin: 292px 101px; animation: vm-spin 9s 1s linear infinite; }
.vm.is-win .vm-badge-check { animation: vm-draw .45s 1.3s ease-out forwards; }
.vm.is-win .vm-sparks { opacity: 1; }
.vm-sparks circle { fill: #ffd166; opacity: 0; }
.vm.is-win .vm-sparks circle { animation: vm-spark .7s .92s ease-out both; }
.vm-sparks circle:nth-child(1) { --sx: -14px; --sy: -18px; } .vm-sparks circle:nth-child(2) { --sx: 12px; --sy: -22px; }
.vm-sparks circle:nth-child(3) { --sx: -18px; --sy: 14px; } .vm-sparks circle:nth-child(4) { --sx: 16px; --sy: 18px; }
.vm-sparks circle:nth-child(5) { --sx: 2px; --sy: -28px; }
.vm.is-win .vm-confetti { opacity: 1; }
.vm-confetti rect { opacity: 0; transform-origin: 200px 115px; }
.vm.is-win .vm-confetti rect { animation: vm-confetti 1.6s 2.3s cubic-bezier(.2, .7, .3, 1) both; }
.vm.is-win .vm-confetti rect:nth-child(even) { animation-delay: 2.38s; }

@keyframes vm-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.02 .975; } }
@keyframes vm-blink { 0%, 92%, 100% { height: 0; } 95% { height: 32px; } }
@keyframes vm-bump { 0% { scale: 1 1; translate: 0 0; } 35% { scale: 1.08 .9; } 65% { scale: .95 1.08; translate: 0 -8px; } 100% { scale: 1 1; translate: 0 0; } }
@keyframes vm-charge-glow { to { filter: drop-shadow(0 0 7px #2ee6f6) brightness(1.15); } }
@keyframes vm-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
@keyframes vm-tilt { 0%, 100% { rotate: -5deg; } 50% { rotate: 6deg; } }
@keyframes vm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes vm-snore { 0%, 100% { scale: 1 1; } 50% { scale: 1.04 .96; } }
@keyframes vm-zzz { 0% { opacity: 0; translate: 0 6px; } 30%, 70% { opacity: 1; } 100% { opacity: 0; translate: 6px -10px; } }
@keyframes vm-shake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 0; } 30%, 50%, 70% { translate: -8px 0; rotate: -3deg; } 40%, 60% { translate: 8px 0; rotate: 3deg; } }
@keyframes vm-slump { to { scale: 1.03 .95; } }
@keyframes vm-sweat { 0% { opacity: 0; translate: 0 0; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 18px; } }
@keyframes vm-smoke { 0% { opacity: 0; translate: 0 0; scale: .4; } 30% { opacity: .9; } 100% { opacity: 0; translate: 0 -34px; scale: 1.8; } }
@keyframes vm-fizzle { 0%, 40% { fill: #ff5a5a; stroke: #ff9a9a; } 100% { fill: var(--vm-spike); stroke: var(--vm-spike); } }
@keyframes vm-spike-on { 0% { fill: var(--vm-spike); stroke: var(--vm-spike); } 100% { fill: var(--vm-glow); stroke: #a5f6fd; filter: drop-shadow(0 0 5px var(--vm-glow)); } }
@keyframes vm-crouch { 0% { scale: 1 1; } 100% { scale: 1.06 .9; } }
@keyframes vm-recoil { 0% { scale: 1.06 .9; translate: 0 0; } 15% { scale: 1 1.03; translate: -6px 0; } 100% { scale: 1 1; translate: 0 0; } }
@keyframes vm-hop { 0% { translate: 0 0; } 45% { translate: 0 -22px; scale: .96 1.05; } 80% { translate: 0 0; scale: 1.05 .94; } 100% { translate: 0 0; scale: 1 1; } }
@keyframes vm-eye-flash { 0% { fill: var(--vm-glow); } 20%, 80% { fill: #fff; filter: drop-shadow(0 0 6px #fff); } 100% { fill: var(--vm-glow); } }
@keyframes vm-shades { 0% { opacity: 0; translate: 0 -90px; rotate: -12deg; } 60% { opacity: 1; translate: 0 4px; rotate: 3deg; } 100% { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes vm-laser-life { 0% { opacity: 1; } 20% { opacity: .75; } 30% { opacity: 1; } 45% { opacity: .8; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vm-laser-draw { to { stroke-dashoffset: 0; } }
@keyframes vm-badge-pop { 0% { opacity: 0; scale: .3; } 100% { opacity: 1; scale: 1; } }
@keyframes vm-spin { to { rotate: 360deg; } }
@keyframes vm-draw { to { stroke-dashoffset: 0; } }
@keyframes vm-spark { 0% { opacity: 0; translate: 0 0; } 5% { opacity: 1; } 100% { opacity: 0; translate: var(--sx) var(--sy); } }
@keyframes vm-confetti { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 4% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; translate: var(--dx) calc(var(--dy) + 60px); rotate: var(--r); } }

/* Reduced motion: every pose is still readable, nothing moves. */
@media (prefers-reduced-motion: reduce) {
    .vm *, .vm.is-bump .vm-motion { animation: none !important; transition: none !important; }
    .vm.is-win .vm-spike, .vm.is-win .vm-spike-tip { fill: var(--vm-glow); stroke: #a5f6fd; }
    .vm.is-win .vm-badge, .vm.is-win .vm-shades { opacity: 1; }
    .vm.is-win .vm-badge-check { stroke-dashoffset: 0; }
    .vm.is-fail .vm-smoke { opacity: 0; }
    .vm.is-sleep .vm-zzz text { opacity: 1; }
}

/* Where the mascot sits */
.vc__monster { width: 112px; margin: -4px auto 0; }
.vc-card__monster { width: 168px; margin: -10px auto -6px; }
.vw-page { display: flex; justify-content: center; padding: 40px 16px 72px; }
.vw-card { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 520px; padding: 24px 18px 28px; border: 1px solid var(--vc-line); border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 18px 40px -24px rgba(28, 28, 110, .35); overflow: hidden; }
@media (min-width: 576px) { .vw-card { padding: 32px 36px 36px; } }
.vw-stage { width: 100%; max-width: 420px; }
.vw-title { margin: 0; color: var(--vc-ink); font-size: 24px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.vw-body { margin: 0; max-width: 40ch; color: var(--vc-body); font-size: 15px; line-height: 1.65; }
.vw-title, .vw-body, .vw-actions { animation: vw-rise .5s 2.2s ease-out both; }
.vw-actions { display: grid; justify-items: center; gap: 8px; width: 100%; max-width: 320px; }
.vw-actions .vc-card__btn { text-decoration: none; }
.vw-actions .vc-card__btn:hover { color: #fff; background: #3634b8; }
.vw-note { margin: 0; color: var(--vc-muted); font-size: 13px; }
@keyframes vw-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .vw-title, .vw-body, .vw-actions { animation: none; } }
