/* ==========================================================================
   luxfp.css — Reset password page (forgot-password.php)
   Only what this page adds on top of assets/lux.css (layout, inputs, buttons, footer are shared).
   ========================================================================== */

/* -------------------------------------------------------------------------
   Left: headline + lede beside the card illustration, features at the bottom
   ------------------------------------------------------------------------- */
.luxfp-hero {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 0;
}
.luxfp-copy { align-self: start; }
.luxfp-lede {
    margin: 22px 0 0;
    max-width: 380px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--lux-muted);
}
/* Scene: frosted-glass cards tilted in 3D, blending into the panel (no hard white cards) */
.luxfp-scene {
    position: relative; justify-self: end;
    width: 100%; max-width: 420px; aspect-ratio: 420 / 500;   /* line 30 */
    top: clamp(25px, 8vh, 100px);
    z-index: 0;
    scale: 1.05;   /* ← add: 1.1 = 10% bigger, 1.2 = 20% bigger */
}

.luxfp-features, .luxfp-aside .lux-aside-foot { position: relative; z-index: 1; }
.luxfp-trails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.luxfp-stage {
    position: absolute; inset: 0;
    perspective: 1100px; perspective-origin: 30% 40%;
}
/* Card colours: warm sand a shade darker than the panel, light brand-orange edge.
   Change these three to retune every card (e.g. --luxfp-card-edge: rgba(120, 86, 52, .28) for brown). */
.luxfp-scene {
    --luxfp-card-top: rgba(239, 226, 211, .92);
    --luxfp-card-bottom: rgba(228, 210, 190, .62);
    --luxfp-card-edge: rgba(228, 88, 36, .30); /* the logo's orange (#e45824), lightened */
}
.luxfp-card {
    position: absolute;
    border-radius: 24px;
    background: linear-gradient(150deg, var(--luxfp-card-top) 0%, var(--luxfp-card-bottom) 100%);
    border: 1px solid var(--luxfp-card-edge);
    box-shadow:
        0 30px 60px -26px rgba(120, 86, 52, .34),   /* soft depth below */
        inset 0 1px 0 rgba(255, 255, 255, .65),     /* lit top edge */
        inset 0 -16px 32px -18px rgba(160, 120, 84, .22);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
            backdrop-filter: blur(10px) saturate(115%);
    transform-style: preserve-3d;
    display: flex; flex-direction: column; align-items: center;
}
/* tilt: turned slightly away to the right, looking down a touch */
.luxfp-card { --tilt: rotateY(-20deg) rotateX(8deg) rotateZ(-1deg); transform: var(--tilt); }
.luxfp-card-back { left: 34%; top: 4%;  width: 50%; height: 48%; opacity: .55; --tilt: rotateY(-20deg) rotateX(8deg) translateZ(-60px); }
.luxfp-card-lock { left: 27%; top: 11%; width: 52%; height: 52%; padding-top: 11%; }
.luxfp-card-user { left: 7%;  top: 49%; width: 30%; height: 30%; padding-top: 5%; border-radius: 20px; --tilt: rotateY(-20deg) rotateX(8deg) translateZ(30px); }
.luxfp-card-mail {
    left: 41%; top: 70%; width: 23%; height: 16%; border-radius: 18px; justify-content: center;
    background: linear-gradient(150deg, rgba(246, 222, 204, .95), rgba(236, 200, 176, .7));
    --tilt: rotateY(-20deg) rotateX(8deg) translateZ(60px);
}
.luxfp-card svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.luxfp-card-mail svg { width: 30%; stroke: #e5651f; stroke-width: 1.8; }

.luxfp-disc {
    position: relative;
    width: 44%; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(226, 238, 236, .7));
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, .9), 0 10px 24px -14px rgba(39, 109, 119, .35);
}
.luxfp-disc-lg { width: 56%; }
.luxfp-disc svg { width: 46%; stroke: #276d77; stroke-width: 1.7; }
.luxfp-disc-lg svg { width: 42%; stroke: #1f5f68; stroke-width: 1.6; }
.luxfp-keyhole { fill: #1f5f68; stroke: none; }
.luxfp-bar { display: block; width: 52%; height: 7px; margin-top: 14%; border-radius: 4px; background: rgba(255, 250, 243, .75); }
.luxfp-bar-sm { width: 36%; margin-top: 7px; background: rgba(255, 250, 243, .5); }
.luxfp-card-user .luxfp-bar { margin-top: 12%; height: 6px; }

.luxfp-features { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.luxfp-aside .lux-aside-foot { margin-top: 64px; } /* breathing room between the features and the signature line */
.luxfp-features li { display: flex; align-items: center; gap: 16px; }
.luxfp-features strong { display: block; font-size: 16px; font-weight: 700; color: var(--lux-ink); }
.luxfp-features span:not(.luxfp-fi) { display: block; font-size: 14.5px; color: var(--lux-muted); }
.luxfp-fi {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.luxfp-fi svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.luxfp-fi-teal   { background: #e4efee; } .luxfp-fi-teal svg   { stroke: var(--lux-primary); }
.luxfp-fi-orange { background: #fde9dd; } .luxfp-fi-orange svg { stroke: #e5651f; }
.luxfp-fi-lime   { background: #eef6d3; } .luxfp-fi-lime svg   { stroke: #6e8a12; }

/* Illustration motion: cards float, dots pulse, trails march (lux-dash, from lux.css) */
/* float keeps the 3D tilt (--tilt) and only adds a gentle lift */
.luxfp-float { animation: luxfp-float 6s ease-in-out infinite; animation-delay: var(--f, 0s); }
.luxfp-pulse { transform-box: fill-box; transform-origin: center; animation: lux-twinkle 3.2s ease-in-out infinite; }
.luxfp-lock-ring {
    position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--lux-primary); opacity: 0; pointer-events: none;
}
.luxfp-shackle { transform-box: fill-box; transform-origin: 75% 100%; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes luxfp-float { 0%, 100% { transform: var(--tilt) translateY(0); } 50% { transform: var(--tilt) translateY(-8px); } }

/* Sending / checking: the code "travels" and the lock listens */
.lux-busy .luxfp-trail { animation-duration: .6s; stroke-opacity: 1; }
.lux-busy .luxfp-lock-ring { animation: lux-ring 1.2s ease-out infinite; }
/* Verified: the lock opens */
.luxfp-verified .luxfp-shackle { transform: translateY(-3px) rotate(-28deg); }
.luxfp-verified .luxfp-lock-ring { border-color: #15803d; animation: lux-ring 1.4s ease-out 2; }

/* -------------------------------------------------------------------------
   Right
   ------------------------------------------------------------------------- */
.luxfp-back {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 28px;
    font-size: 15px; font-weight: 600; color: var(--lux-primary); text-decoration: none;
}
.luxfp-back { display: flex; width: fit-content; margin-left: auto; } /* on the right, like "Forgot password?" on sign in */
.luxfp-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.luxfp-back:hover { color: var(--lux-primary-dark); }
.luxfp-back:hover svg { transform: translateX(-3px); }

.luxfp-sub { margin-bottom: 30px; }

/* Field-level errors (this page validates in luxfp.js, not FormValidation) */
.lux-field-error { margin-top: 6px; font-size: 13px; font-weight: 500; color: #c62f2a; }
.lux-form .form-control.lux-input.lux-invalid { border-color: #e2554f; }

/* Code sent line: same box as the workspace line */
.luxfp-sent { margin-top: 0; }
.luxfp-sent strong { overflow-wrap: anywhere; } /* to the next line whole; broken only when longer than the line */

/* -------------------------------------------------------------------------
   6-digit code: one transparent input over six boxes (paste + one-time-code autofill)
   ------------------------------------------------------------------------- */
.luxfp-code { position: relative; display: flex; align-items: center; gap: 10px; }
.luxfp-code-input {
    position: absolute; inset: 0; z-index: 2;
    width: 100%; height: 100%;
    border: 0; outline: none; background: transparent;
    color: transparent; caret-color: transparent; font-size: 16px; /* 16px: no zoom on iOS */
    letter-spacing: 0; text-indent: -9999px;
}
.luxfp-code-input::selection { background: transparent; }
.luxfp-box {
    flex: 1 1 0; min-width: 0; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--lux-line); border-radius: 12px; background: #fff;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; /* codes in Plex Mono, as in the app */
    font-size: 26px; font-weight: 600; color: var(--lux-ink); font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.luxfp-gap { flex: none; width: 10px; height: 2px; border-radius: 1px; background: #c9d1d2; }
.luxfp-box.is-filled { border-color: #b9cfd1; }
.luxfp-code.is-focused .luxfp-box.is-active {
    border-color: var(--lux-primary);
    box-shadow: 0 0 0 4px rgba(var(--lux-primary-rgb), .14);
}
.luxfp-code.is-focused .luxfp-box.is-active:empty::after {
    content: ""; width: 2px; height: 26px; background: var(--lux-primary); animation: lux-blink 1s steps(1) infinite;
}
.luxfp-code.is-error .luxfp-box { border-color: #e2554f; }
.luxfp-code.is-shake { animation: luxfp-shake .4s ease; }
.luxfp-code.is-done .luxfp-box { border-color: #15803d; color: #15803d; }
@keyframes luxfp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.luxfp-resend { margin-top: 12px; font-size: 14px; color: var(--lux-muted); }
.luxfp-resend .lux-link { font-size: 14px; }
.luxfp-resend .lux-link:disabled { color: #9aa4a6; cursor: default; text-decoration: none; }
.luxfp-countdown { color: #9aa4a6; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   "A few things to know"
   ------------------------------------------------------------------------- */
.luxfp-info {
    display: flex; gap: 16px; align-items: flex-start;
    margin-top: 28px; padding: 22px 22px;
    border-radius: 12px; background: #f1f6f6; border: 1px solid #e3eded;
}
.luxfp-info-icon {
    flex: none; width: 46px; height: 46px; border-radius: 50%; background: #e2eeee;
    display: inline-flex; align-items: center; justify-content: center;
}
.luxfp-info-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--lux-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.luxfp-info strong { display: block; margin-bottom: 4px; font-size: 15.5px; font-weight: 700; color: var(--lux-ink); }
.luxfp-info p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--lux-muted); }

/* -------------------------------------------------------------------------
   Responsive + reduced motion
   ------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .luxfp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .luxfp-lede { font-size: 16px; }
}
@media (max-width: 991.98px) {
    .luxfp-back { margin-bottom: 20px; }
}
/* Short laptop screens (e.g. 1280×800): tighten the right column so the page fits without
   scrolling and the footer lands exactly where it does on the login page */
@media (min-width: 992px) and (max-height: 860px) {
    .luxfp-page .lux-main { padding-top: 28px; }
    .luxfp-page .lux-form-wrap { padding: 8px 0; }
    .luxfp-back { margin-bottom: 18px; }
    .luxfp-page .lux-title { font-size: 38px; }
    .luxfp-sub { margin-top: 8px; margin-bottom: 20px; }
    .luxfp-info { margin-top: 20px; padding: 16px 18px; }
    .luxfp-info p { font-size: 13.5px; }
}
@media (max-width: 420px) {
    .luxfp-code { gap: 6px; }
    .luxfp-box { height: 52px; font-size: 22px; border-radius: 10px; }
    .luxfp-gap { width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .luxfp-float, .luxfp-pulse, .luxfp-lock-ring, .luxfp-code.is-shake,
    .luxfp-code.is-focused .luxfp-box.is-active:empty::after { animation: none !important; }
    .luxfp-shackle { transition: none; }
}

/* Cloudflare Turnstile — empty (invisible) for most people; shows a check under the button only when needed */
.luxfp-turnstile { display: flex; justify-content: center; }
.luxfp-turnstile iframe { margin-top: 16px; }

/* Skolarli teal panel (see lux.css): frosted-white glass cards, light text, faint white trails */
.lux-aside .luxfp-scene {
    --luxfp-card-top: rgba(255, 255, 255, .20);
    --luxfp-card-bottom: rgba(255, 255, 255, .06);
    --luxfp-card-edge: rgba(255, 255, 255, .30);
}
.lux-aside .luxfp-card {
    box-shadow:
        0 30px 60px -26px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -16px 32px -18px rgba(0, 0, 0, .18);
}
.lux-aside .luxfp-card-mail { background: linear-gradient(150deg, rgba(243, 140, 80, .92), rgba(228, 88, 36, .78)); border-color: rgba(255, 255, 255, .35); }
.lux-aside .luxfp-card-mail svg { stroke: #fff; }
.lux-aside .luxfp-bar { background: rgba(255, 255, 255, .45); }
.lux-aside .luxfp-bar-sm { background: rgba(255, 255, 255, .28); }
.lux-aside .luxfp-lede { color: var(--lux-panel-text); }
.lux-aside .luxfp-features strong { color: var(--lux-panel-ink); }
.lux-aside .luxfp-features span:not(.luxfp-fi) { color: var(--lux-panel-muted); }
.lux-aside .luxfp-fi-teal,
.lux-aside .luxfp-fi-orange,
.lux-aside .luxfp-fi-lime { background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lux-aside .luxfp-fi-teal svg   { stroke: var(--lux-panel-accent); }
.lux-aside .luxfp-fi-orange svg { stroke: var(--lux-panel-orange); }
.lux-aside .luxfp-fi-lime svg   { stroke: #c9e85a; }
.lux-aside .luxfp-trails path[stroke="#c9b39a"] { stroke: rgba(255, 255, 255, .26); }
.lux-aside .luxfp-trails path[stroke="#7aa7ad"] { stroke: rgba(159, 216, 222, .55); }
.lux-aside .luxfp-trails circle[fill="#1f5c64"] { fill: var(--lux-panel-accent); }
