/* ==========================================================================
   Ayuvani — admin and vendor authentication screens
   Third pass, 2026-11-13.
   --------------------------------------------------------------------------
   WHAT CHANGED AND WHY

   The second pass got the shape right — a floating card, a filled scene, a
   curved seam — and the material wrong. Flat fills, a flat button, one
   drifting-leaf animation shared by all five pages, and a green that was
   too bright to read as considered.

   The fix comes from the PropVastu dashboard, which solves the same problem
   for the same business. Four things are borrowed from it, and only four:

     1  SOFT CLAY SURFACES. Panels are a warm gradient lit from the top
        left, with a dark shadow on one side and a white one on the other.
        It is the whole reason that product looks made rather than styled.
     2  FIELDS PRESSED INTO THE SURFACE. Two inset shadows instead of a
        border: the field is a dent in the clay, not a box drawn on it.
     3  A BUTTON WITH A BODY. A top highlight and a dark bottom lip inside
        the fill, so it reads as something to press.
     4  A SERIF HEADING against the sans body, with a hairline rule in the
        accent colour above it.

   The PALETTE IS NOT BORROWED. PropVastu is pine and gold; this stays
   Ayuvani's forest green and sun yellow, with the yellow deepened to
   #d4bf35 for anything that carries weight — the raw #f7e52e is the logo's
   own and it is far too bright to put behind text or along a rule.

   FIVE PAGES, FIVE SCENES, FIVE MOTIONS

   Every page had the same garden and the same drifting leaves. Each now
   has a composition and a behaviour of its own, chosen for what the page
   is for: the admin's sun turns, the vendor's plant grows, the recovery
   pages ripple, orbit and unfurl. Nothing is shared but the palette and
   the stroke weight.

   THE OVERLAP, STILL STRUCTURAL
   The scene is a layer pinned to the lower 58% of the panel; the copy sits
   above it in normal flow. There is no arrangement in which they meet, and
   it does not depend on any rule here winning a cascade. On the mobile band
   the scene is a strip reserved as bottom padding, which holds however long
   the copy runs.

   CONSTRAINTS: no build step, no JavaScript, and no change to the five
   Blade files beyond the stylesheet link and the copy they pass in. Field
   icons are background images for that reason.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

.auth-wrapper {
    /* Ayuvani's own, read off the logo file. */
    --ayv-forest: #14301a;
    --ayv-bark: #1b3a19;
    --ayv-leaf: #2f6b2c;
    --ayv-leaf-light: #3f8a3b;
    --ayv-moss: #5b8c52;
    --ayv-sage: #a8c5a0;

    /* The logo's yellow is #f7e52e. It is right on a white mark and wrong
       anywhere it has to carry text or sit next to it, so anything
       structural uses the deepened pair and the raw colour is kept for
       highlights inside the artwork. */
    --ayv-sun: #f7e52e;
    --ayv-accent: #d4bf35;
    --ayv-accent-deep: #a8932a;

    /* The clay. Warm, slightly green-leaning cream so it belongs to the
       same family as the greens rather than reading as beige. */
    --ayv-clay: #f1ece0;
    --ayv-clay-top: #fdfbf4;
    --ayv-clay-shade: #d8d1c0;
    --ayv-clay-lit: #ffffff;

    --ayv-ink: #16301c;
    --ayv-ink-soft: rgba(22, 48, 28, 0.62);
    --ayv-ink-faint: rgba(22, 48, 28, 0.34);

    /* Retinted per scene, so five pages are told apart at a glance. */
    --ayv-sky-a: #fdfae8;
    --ayv-sky-b: #eef3dd;
    --ayv-sky-c: #d4e4c8;
}

/* --------------------------------------------------------------------------
   2. THE GROUND
   A warm wash with two soft lights in it, which is what gives the card
   something to cast a shadow onto.
   -------------------------------------------------------------------------- */

body {
    background: #e8e6d8;
}

main#content.main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);

    background:
        radial-gradient(52rem 34rem at 16% 10%, rgba(255, 246, 198, 0.62) 0%, rgba(255, 246, 198, 0) 62%),
        radial-gradient(46rem 30rem at 86% 90%, rgba(143, 176, 137, 0.34) 0%, rgba(143, 176, 137, 0) 66%),
        linear-gradient(158deg, #f5f2e4 0%, #ebe8d8 52%, #dfe2cd 100%);
    background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   3. THE CARD
   .auth-wrapper is the base template's own element, so restyling it here
   means the five Blade files need no structural change.
   -------------------------------------------------------------------------- */

.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: min(660px, 90vh);

    display: grid;
    /* minmax(0, …) rather than a bare fr: an fr track floors at min-content,
       so the form column's widest element would otherwise set the split. */
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: stretch;

    background: linear-gradient(160deg, var(--ayv-clay-top) 0%, var(--ayv-clay) 100%);
    border-radius: 36px;
    overflow: hidden;
    isolation: isolate;

    /* Two lights. The warm shadow is where the light is not, the white one
       is where it is, and the inset hairline is the lit top edge. Replacing
       this with a single soft drop shadow is what made the last pass look
       flat. */
    box-shadow:
        20px 26px 52px rgba(90, 86, 52, 0.20),
        -14px -14px 36px rgba(255, 255, 255, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Both halves were sized for the template's own flex layout: the form side
   carries max-width:450px and the picture side a percentage width, and in a
   grid neither fills the track it was given. Measured on the page, a 501px
   column held a 79px panel.

   !important is doing real work rather than papering over a guess: these
   come from style.css and style-extended.css, both of which load before
   this file with selectors of the same weight. */
.auth-wrapper > .auth-wrapper-left,
.auth-wrapper > .auth-wrapper-right {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
}

/* --------------------------------------------------------------------------
   4. THE PICTURE SIDE
   -------------------------------------------------------------------------- */

.ayv-stage {
    position: relative;
    overflow: hidden;
    z-index: 1;

    display: block;
    padding: clamp(2rem, 3.2vw, 3rem);
    padding-inline-end: clamp(2rem, 4vw, 3.75rem);

    background: linear-gradient(168deg, var(--ayv-sky-a) 0%, var(--ayv-sky-b) 54%, var(--ayv-sky-c) 100%);
}

/* The scene is pinned to the lower 58%. The copy occupies the top in normal
   flow, so the two cannot meet whatever the copy does. */
.ayv-scene {
    position: absolute;
    inset: 42% 0 0 0;
    z-index: 1;
    pointer-events: none;
}

.ayv-scene svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Second line of defence, not the first: if a page ever carries enough copy
   to reach into the scene, the text still has something to sit on. */
.ayv-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(255, 255, 255, 0.30) 28%,
        rgba(255, 255, 255, 0) 54%
    );
}

/* --------------------------------------------------------------------------
   5. THE SEAM
   The form surface bulges into the picture rather than meeting it on a
   straight line. Drawn as a pseudo-element in the surface colour; the card
   clips it, so nothing escapes.
   -------------------------------------------------------------------------- */

.auth-wrapper-right::before {
    content: "";
    position: absolute;
    top: -2%;
    bottom: -2%;
    left: -3.25rem;
    width: 6.75rem;
    z-index: -1;

    background: var(--ayv-clay);
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
}

/* --------------------------------------------------------------------------
   6. THE MARK AND THE COPY
   The logo is dark green on transparent and there is no light variant in
   storage, so it sits in a lit clay tile — the one idea taken whole from
   the PropVastu sign-in, where the mark is the app icon rather than a
   picture floating on the background.
   -------------------------------------------------------------------------- */

.ayv-stage .auth-left-cont {
    position: relative;
    z-index: 4;
    max-width: 25rem;
}

.ayv-stage .auth-left-cont > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 0.7rem 1rem;
    margin-bottom: clamp(1.1rem, 2.6vh, 1.9rem) !important;

    border-radius: 20px;
    background: linear-gradient(150deg, var(--ayv-clay-top), var(--ayv-clay));
    box-shadow:
        6px 8px 16px rgba(90, 86, 52, 0.16),
        -5px -5px 12px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ayv-stage .auth-left-cont img {
    width: clamp(132px, 13vw, 164px);
    height: auto;
}

/* The hairline rule above the headline. A single accent line is the
   cheapest way to say a page was designed; a gradient to transparent at
   both ends keeps it from reading as a border. */
.ayv-stage .ayv-title::before {
    content: "";
    display: block;
    width: 3.25rem;
    height: 2px;
    margin-bottom: 0.9rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ayv-accent), rgba(212, 191, 53, 0));
}

.ayv-stage .ayv-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(26px, 2.1vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ayv-ink);
}

.ayv-stage .ayv-title .ayv-accent {
    display: block;
    font-weight: 600;
    font-style: italic;
    color: var(--ayv-leaf);
}

.ayv-stage .ayv-sub {
    margin: 0.9rem 0 0;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ayv-ink-soft);
}

/* --------------------------------------------------------------------------
   7. THE FORM SIDE
   -------------------------------------------------------------------------- */

.auth-wrapper-right {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2rem, 3.2vw, 3rem) clamp(1.75rem, 3.2vw, 3rem);
    background: linear-gradient(170deg, var(--ayv-clay-top) 0%, var(--ayv-clay) 46%);
}

.auth-wrapper-right .auth-wrapper-form {
    width: 100%;
    max-width: 24.5rem;
    margin-inline: auto;
}

/* The release badge, as a small pressed chip rather than a coloured label. */
.auth-wrapper-right > .badge {
    position: absolute;
    top: 1.15rem;
    right: 1.35rem;
    z-index: 3;
    float: none !important;

    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--ayv-ink-soft) !important;
    background: var(--ayv-clay) !important;
    box-shadow:
        inset 2px 2px 4px var(--ayv-clay-shade),
        inset -2px -2px 4px var(--ayv-clay-lit);
}

/* --------------------------------------------------------------------------
   8. FORM HEADINGS
   The template ships display-4 on "Sign in", which is 3.5rem and shouts.
   -------------------------------------------------------------------------- */

.auth-wrapper-right .display-4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ayv-ink);
    margin-bottom: 0.35rem;
}

.auth-wrapper-right .h3.text-body {
    font-size: 0.9rem !important;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ayv-ink-soft) !important;
    margin-bottom: 0 !important;
}

.auth-wrapper-right .mb-5 {
    margin-bottom: clamp(1.35rem, 3vh, 1.9rem) !important;
}

/* --------------------------------------------------------------------------
   9. FIELDS PRESSED INTO THE CLAY
   Two inset shadows and no border: a dent in the surface rather than a box
   drawn on it. The focus state keeps both and adds an accent ring, so a
   keyboard user still has an unmistakable marker.
   -------------------------------------------------------------------------- */

/* Not just .form-label: the vendor pages label their fields with a plain
   <label>, so a .form-label-only rule styled the admin page and left the
   other four with the template's default. */
.auth-wrapper-right .form-group > label,
.auth-wrapper-right .js-form-message > label,
.auth-wrapper-right .form-label,
.auth-wrapper-right label.form-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ayv-ink-soft);
    margin-bottom: 0.45rem;
}

.auth-wrapper-right .form-group {
    margin-bottom: 1rem;
}

.auth-wrapper-right .form-control {
    height: 50px;
    padding: 0.7rem 1.1rem;
    border: 0;
    border-radius: 16px;
    background: var(--ayv-clay);
    color: var(--ayv-ink);
    font-size: 0.94rem;

    box-shadow:
        inset 4px 4px 9px var(--ayv-clay-shade),
        inset -4px -4px 9px var(--ayv-clay-lit);
    transition: box-shadow 200ms ease, background-color 200ms ease;
}

.auth-wrapper-right .form-control::placeholder {
    color: var(--ayv-ink-faint);
}

.auth-wrapper-right .form-control:focus {
    outline: none;
    background: var(--ayv-clay);
    box-shadow:
        inset 4px 4px 9px var(--ayv-clay-shade),
        inset -4px -4px 9px var(--ayv-clay-lit),
        0 0 0 2px var(--ayv-accent);
}

/* Leading icons, carried as background images so no Blade file needs new
   markup. */
.auth-wrapper-right input[type="email"],
.auth-wrapper-right input[type="password"],
.auth-wrapper-right input[type="tel"] {
    padding-left: 2.95rem;
    background-repeat: no-repeat;
    background-position: 1.1rem center;
    background-size: 18px 18px;
}

.auth-wrapper-right input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b2c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3.5'/%3E%3Cpath d='m3.5 7.5 8.5 5.6 8.5-5.6'/%3E%3C/svg%3E");
}

.auth-wrapper-right input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b2c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10.5' rx='3.2'/%3E%3Cpath d='M8 10V7.2a4 4 0 0 1 8 0V10'/%3E%3C/svg%3E");
}

.auth-wrapper-right input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b2c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 3.5h3.2l1.8 4.4-2.2 1.4a11.5 11.5 0 0 0 5.6 5.6l1.4-2.2 4.4 1.8v3.2a1.8 1.8 0 0 1-1.9 1.8A16.4 16.4 0 0 1 3.7 5.4a1.8 1.8 0 0 1 1.8-1.9z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   10. INPUT GROUPS
   The password field ships wrapped in a group with a show/hide toggle.
   The dent moves to the group and the field inside goes flat, or the page
   shows two rounded rectangles stacked.
   -------------------------------------------------------------------------- */

.auth-wrapper-right .input-group {
    position: relative;
    border: 0;
    border-radius: 16px;
    background: var(--ayv-clay);
    box-shadow:
        inset 4px 4px 9px var(--ayv-clay-shade),
        inset -4px -4px 9px var(--ayv-clay-lit);
    transition: box-shadow 200ms ease;
}

.auth-wrapper-right .input-group:focus-within {
    box-shadow:
        inset 4px 4px 9px var(--ayv-clay-shade),
        inset -4px -4px 9px var(--ayv-clay-lit),
        0 0 0 2px var(--ayv-accent);
}

.auth-wrapper-right .input-group .form-control,
.auth-wrapper-right .input-group .form-control:focus {
    background: transparent;
    box-shadow: none;
    padding-right: 3rem;
}

.auth-wrapper-right .input-group-append,
.auth-wrapper-right .changePassTarget {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;

    display: flex;
    align-items: center;
    padding-inline: 1.05rem;
    background: transparent;
    border: 0;

    /* style-extended.css centres this with top:50% plus translateY(-50%).
       Stretching it top to bottom instead leaves that transform in place
       and lifts the icon half its own height clear of the field. */
    transform: none;
}

.auth-wrapper-right .changePassTarget a {
    display: inline-flex;
    color: var(--ayv-ink-faint);
    transition: color 140ms ease;
}

.auth-wrapper-right .changePassTarget a:hover {
    color: var(--ayv-leaf);
}

/* --------------------------------------------------------------------------
   11. CHECKBOX, LINKS, CAPTCHA
   -------------------------------------------------------------------------- */

.auth-wrapper-right .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.08rem;
    border: 0;
    border-radius: 0.4rem;
    background-color: var(--ayv-clay);
    box-shadow:
        inset 2px 2px 4px var(--ayv-clay-shade),
        inset -2px -2px 4px var(--ayv-clay-lit);
}

.auth-wrapper-right .form-check-input:checked {
    background-color: var(--ayv-leaf);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 6px -2px rgba(20, 48, 26, 0.5);
}

.auth-wrapper-right .form-check-label,
.auth-wrapper-right .custom-control-label {
    font-size: 0.86rem;
    color: var(--ayv-ink-soft);
}

.auth-wrapper-right a:not(.btn) {
    color: var(--ayv-leaf);
    font-weight: 600;
    text-decoration: none;
    transition: color 140ms ease;
}

.auth-wrapper-right a:not(.btn):hover {
    color: var(--ayv-accent-deep);
}

/* The captcha is built by script into this container as an input beside an
   image, with no .form-control on either, so it needs saying twice: left
   as it was, a white box with square corners sat in the middle of a column
   of pressed clay. */
.auth-wrapper-right .default-captcha-container {
    margin-top: 0.25rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ayv-clay);
    box-shadow:
        inset 4px 4px 9px var(--ayv-clay-shade),
        inset -4px -4px 9px var(--ayv-clay-lit);
}

.auth-wrapper-right .default-captcha-container input {
    height: 50px;
    border: 0;
    border-radius: 16px 0 0 16px;
    background: transparent;
    box-shadow: none;
    color: var(--ayv-ink);
}

.auth-wrapper-right .default-captcha-container input:focus {
    outline: none;
    box-shadow: none;
}

.auth-wrapper-right .default-captcha-container img,
.auth-wrapper-right .default-captcha-container canvas {
    border-radius: 14px;
    mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   12. THE BUTTON
   A top highlight and a dark bottom lip inside the fill, so it has a body
   and reads as something to press. On :active the lip goes and the button
   sinks, which is the whole trick.
   -------------------------------------------------------------------------- */

.auth-wrapper-right .btn-primary,
.auth-wrapper-right .btn--primary {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.015em;
    color: #fff;

    background: linear-gradient(145deg, var(--ayv-leaf-light) 0%, var(--ayv-forest) 100%);
    box-shadow:
        0 12px 22px -8px rgba(20, 48, 26, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(0, 0, 0, 0.18);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.auth-wrapper-right .btn-primary:hover,
.auth-wrapper-right .btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        0 16px 28px -8px rgba(20, 48, 26, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.auth-wrapper-right .btn-primary:active,
.auth-wrapper-right .btn--primary:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 10px -4px rgba(20, 48, 26, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* A light crossing the button on hover. */
.auth-wrapper-right .btn-primary::after,
.auth-wrapper-right .btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 34%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.30) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    opacity: 0;
}

/* --------------------------------------------------------------------------
   13. ENTRANCE
   Settles inside 900ms. The previous version drew every stroke of the
   artwork over three to four seconds, so the panel looked broken on every
   visit.
   -------------------------------------------------------------------------- */

@keyframes ayv-card-in {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

@keyframes ayv-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ayv-rule-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes ayv-scene-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ayv-seam-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ayv-sweep {
    0%   { opacity: 0; left: -40%; }
    18%  { opacity: 1; }
    100% { opacity: 0; left: 120%; }
}

@media (prefers-reduced-motion: no-preference) {

    .auth-wrapper {
        animation: ayv-card-in 640ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .auth-wrapper-right::before {
        animation: ayv-seam-in 740ms cubic-bezier(0.22, 1, 0.36, 1) 100ms backwards;
    }

    .ayv-scene {
        animation: ayv-scene-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 140ms backwards;
    }

    .ayv-stage .auth-left-cont > * {
        animation: ayv-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }
    .ayv-stage .auth-left-cont > *:nth-child(1) { animation-delay: 150ms; }
    .ayv-stage .auth-left-cont > *:nth-child(2) { animation-delay: 230ms; }
    .ayv-stage .auth-left-cont > *:nth-child(3) { animation-delay: 310ms; }

    /* The accent rule draws itself out from the left, after the headline
       has arrived. */
    .ayv-stage .ayv-title::before {
        transform-origin: left center;
        animation: ayv-rule-draw 560ms cubic-bezier(0.22, 1, 0.36, 1) 380ms backwards;
    }

    .auth-wrapper-right .auth-wrapper-form > form > * {
        animation: ayv-rise 460ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(1) { animation-delay: 210ms; }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(2) { animation-delay: 260ms; }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(3) { animation-delay: 310ms; }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(4) { animation-delay: 360ms; }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(5) { animation-delay: 410ms; }
    .auth-wrapper-right .auth-wrapper-form > form > *:nth-child(n+6) { animation-delay: 460ms; }

    .auth-wrapper-right .btn-primary:hover::after,
    .auth-wrapper-right .btn--primary:hover::after {
        animation: ayv-sweep 760ms ease-out;
    }
}

/* --------------------------------------------------------------------------
   14. SCENE PARTS
   Shared fills and strokes. Each scene file supplies its own composition;
   these only say what the materials are.
   -------------------------------------------------------------------------- */

.ayv-scene .ayv-hill-far   { fill: var(--ayv-sage);   opacity: 0.50; }
.ayv-scene .ayv-hill-mid   { fill: var(--ayv-moss);   opacity: 0.58; }
.ayv-scene .ayv-hill-near  { fill: var(--ayv-leaf);   opacity: 0.82; }
.ayv-scene .ayv-ground     { fill: var(--ayv-forest); }

.ayv-scene .ayv-foliage    { fill: var(--ayv-forest); opacity: 0.92; }
.ayv-scene .ayv-foliage-2  { fill: var(--ayv-leaf);   opacity: 0.80; }
.ayv-scene .ayv-foliage-3  { fill: var(--ayv-moss);   opacity: 0.70; }

.ayv-scene .ayv-vein       { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.4; stroke-linecap: round; }
.ayv-scene .ayv-trunk      { fill: none; stroke: var(--ayv-forest); stroke-width: 3; stroke-linecap: round; }
.ayv-scene .ayv-ring-line  { fill: none; stroke: var(--ayv-leaf); stroke-width: 2; opacity: 0.55; }
.ayv-scene .ayv-accent-line{ fill: none; stroke: var(--ayv-accent); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }

.ayv-scene .ayv-sun-disc   { fill: var(--ayv-sun); }
/* Blurred, not a flat disc. A large circle at low opacity still has a hard
   edge, and on the ripple and orbit scenes it read as a yellow plate behind
   the drawing rather than as light. The blur is what makes it a glow. */
.ayv-scene .ayv-sun-halo   { fill: var(--ayv-sun); opacity: 0.42; filter: blur(26px); }
.ayv-scene .ayv-pool       { fill: var(--ayv-moss); opacity: 0.42; }
.ayv-scene .ayv-grain      { fill: var(--ayv-accent); opacity: 0.8; }

/* A scaled transform on an SVG shape resolves its origin against the whole
   viewBox unless the box is switched to the shape, which would put a sun's
   glow off in a corner. */
.ayv-scene .ayv-glow,
.ayv-scene .ayv-pulse,
.ayv-scene .ayv-ripple,
.ayv-scene .ayv-drip,
.ayv-scene .ayv-unfurl {
    transform-box: fill-box;
    transform-origin: center;
}

/* Per-scene sky. The vendor's three recovery pages must not read as one
   page that failed to change. */
.ayv-stage--sunrise    { --ayv-sky-a: #fdfae6; --ayv-sky-b: #f1f4dc; --ayv-sky-c: #d6e5c7; }
.ayv-stage--sprout     { --ayv-sky-a: #f7fcf1; --ayv-sky-b: #e8f3e1; --ayv-sky-c: #cbe2c4; }
.ayv-stage--ripple     { --ayv-sky-a: #f1faf9; --ayv-sky-b: #deefed; --ayv-sky-c: #c4dfda; }
.ayv-stage--orbit      { --ayv-sky-a: #fbf9ea; --ayv-sky-b: #efecd9; --ayv-sky-c: #d9e5c9; }
.ayv-stage--fiddlehead { --ayv-sky-a: #f8fbec; --ayv-sky-b: #ebf2dc; --ayv-sky-c: #cde1c0; }

/* --------------------------------------------------------------------------
   15. ONE MOTION PER PAGE
   Every page used to drift the same three leaves. Each now behaves like
   what it is a picture of, which is the only reason to draw five pictures
   rather than one.
   -------------------------------------------------------------------------- */

@keyframes ayv-turn       { to   { transform: rotate(360deg); } }
@keyframes ayv-turn-back  { to   { transform: rotate(-360deg); } }
@keyframes ayv-breathe    { from { opacity: 0.22; transform: scale(0.94); }
                            to   { opacity: 0.42; transform: scale(1.06); } }
@keyframes ayv-grow       { from { transform: translateY(14px) scaleY(0.86); opacity: 0; }
                            to   { transform: none; opacity: 1; } }
@keyframes ayv-sway       { from { transform: rotate(-2deg); }
                            to   { transform: rotate(2deg); } }
@keyframes ayv-ripple-out { 0%   { opacity: 0;    transform: scale(0.2); }
                            16%  { opacity: 0.7; }
                            100% { opacity: 0;    transform: scale(1.4); } }
@keyframes ayv-drip       { 0%, 58% { opacity: 0;    transform: translateY(-30px) scaleY(0.8); }
                            66%     { opacity: 0.9;  transform: translateY(-14px) scaleY(1); }
                            86%     { opacity: 0.9;  transform: translateY(40px)  scaleY(1.12); }
                            90%,
                            100%    { opacity: 0;    transform: translateY(50px)  scaleY(0.6); } }
@keyframes ayv-unwind     { from { transform: rotate(-26deg) scale(0.9); }
                            to   { transform: rotate(0deg) scale(1); } }
@keyframes ayv-motes      { 0%   { opacity: 0;    transform: translate(0, 0); }
                            15%  { opacity: 0.75; }
                            100% { opacity: 0;    transform: translate(26px, -58px); } }

@media (prefers-reduced-motion: no-preference) {

    /* SUNRISE — the admin's sun. The rays turn once every two minutes,
       slowly enough to be felt rather than watched, and the halo breathes
       against them. */
    .ayv-scene .ayv-rays  { animation: ayv-turn 120s linear infinite; }
    .ayv-scene .ayv-glow  { animation: ayv-breathe 7s ease-in-out infinite alternate; }

    /* SPROUT — the vendor's plant. It grows once on arrival, from the soil
       up, then sways. */
    .ayv-scene .ayv-grow   { animation: ayv-grow 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms backwards; }
    .ayv-scene .ayv-sway   { animation: ayv-sway 6s ease-in-out infinite alternate; transform-origin: bottom center; }

    /* RIPPLE — forgot password. A drop falls and rings spread; the page is
       about something settling, not something broken. */
    .ayv-scene .ayv-ripple { animation: ayv-ripple-out 4.4s ease-out infinite; }
    .ayv-scene .ayv-ripple:nth-of-type(2) { animation-delay: 1.45s; }
    .ayv-scene .ayv-ripple:nth-of-type(3) { animation-delay: 2.9s; }
    .ayv-scene .ayv-drip   { animation: ayv-drip 4.4s ease-in infinite; }

    /* ORBIT — the one-time code. Two rings turning against each other, so
       it reads as in progress without being a spinner. */
    .ayv-scene .ayv-spin     { animation: ayv-turn 26s linear infinite; }
    .ayv-scene .ayv-spin-rev { animation: ayv-turn-back 34s linear infinite; }

    /* FIDDLEHEAD — the last step of recovery. The frond unwinds once and
       stays open. */
    .ayv-scene .ayv-unfurl { animation: ayv-unwind 1.4s cubic-bezier(0.22, 1, 0.36, 1) 400ms backwards; }

    /* Motes of pollen, on the two pages where the air should feel still
       rather than empty. */
    .ayv-scene .ayv-mote   { animation: ayv-motes 13s ease-in-out infinite; }
    .ayv-scene .ayv-mote:nth-of-type(2) { animation-duration: 17s; animation-delay: 4s; }
    .ayv-scene .ayv-mote:nth-of-type(3) { animation-duration: 10s; animation-delay: 7s; }
}

/* --------------------------------------------------------------------------
   16. TABLET AND PHONE
   Below 992px the card goes to one column and the scene becomes a strip
   across the bottom of the band, reserved as padding so the copy can never
   reach it however long it runs.
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    main#content.main {
        align-items: flex-start;
        padding: clamp(0.75rem, 3vw, 1.5rem);
    }

    .auth-wrapper {
        max-width: 34rem;
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .ayv-stage {
        min-height: 0;
        padding: 1.5rem 1.5rem 8rem;
    }

    .ayv-scene {
        inset: auto 0 0 0;
        height: 8rem;
        opacity: 0.88;
    }

    .ayv-stage .auth-left-cont {
        max-width: none;
    }

    /* The logo is already in the form on several of these pages, and two in
       one band is one too many. */
    .ayv-stage .auth-left-cont > a {
        display: none !important;
    }

    .ayv-stage .ayv-title {
        font-size: clamp(22px, 5.6vw, 28px);
    }

    .ayv-stage .ayv-sub {
        display: none;
    }

    /* The seam turns from a vertical curve into a horizontal one. */
    .auth-wrapper-right::before {
        top: -3rem;
        bottom: auto;
        left: -2%;
        right: -2%;
        width: auto;
        height: 6rem;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    }

    .auth-wrapper-right {
        padding: 1.5rem 1.5rem 2rem;
    }

    .auth-wrapper-right > .badge {
        top: auto;
        bottom: 0.85rem;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 575.98px) {

    main#content.main {
        padding: 0;
        background-attachment: scroll;
    }

    .auth-wrapper {
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }

    .ayv-stage {
        padding: 1.4rem 1.25rem 6.5rem;
    }

    .ayv-scene {
        height: 6.5rem;
    }

    /* Centring the form in a full-height card leaves the upper half empty
       on the shorter pages. */
    .auth-wrapper-right {
        justify-content: flex-start;
        padding: 2rem 1.25rem 2.5rem;
    }

    .auth-wrapper-right .auth-wrapper-form {
        max-width: none;
    }
}

/* A laptop at 1366x768 has about 600px of usable height, and a fixed 660px
   card would be cropped. */
@media (min-width: 992px) and (max-height: 760px) {

    .auth-wrapper {
        min-height: 0;
    }

    .ayv-stage,
    .auth-wrapper-right {
        padding-block: clamp(1.5rem, 3.5vh, 2.25rem);
    }
}

/* --------------------------------------------------------------------------
   17. REDUCED MOTION
   Nothing above is hidden by default, so switching the animations off
   leaves a complete, static page rather than an empty one.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ayv-scene .ayv-mote {
        display: none;
    }
}
