/* BeezInvite — login page: swaying cosmos-flower video background (visual layer only).
   Media: public/media/breeze-loop.webm + .mp4 (seamless loop) and breeze-poster.webp, wired up by js/auth-breeze.js. */

   .breeze-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    padding: 36px 16px;
    overflow: hidden;
    /* Shown instantly and whenever JS/canvas is unavailable or motion is reduced. */
    background: #a9cfe0 url(../media/breeze-poster.webp) 50% 88% / cover no-repeat;
}
.breeze-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 88%;   /* keep the flowers in view */
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}
.breeze-video.is-ready { opacity: 1; }

/* Lighter veil: the card now carries its own frosting, so the scene stays vivid. */
.breeze-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(52% 42% at 50% 47%, rgba(253, 250, 243, .28), rgba(253, 250, 243, .08) 62%, transparent 80%),
        linear-gradient(180deg, rgba(253, 250, 243, .10), transparent 28%, transparent 72%, rgba(43, 74, 58, .14));
}

.page-auth-breeze .auth {
    min-height: 0;
    padding: 0;
    background: none;
    position: relative;
    z-index: 2;
}

/* ---------- Glass card ---------- */
.page-auth-breeze .auth-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* low-opacity frosted pane with a soft top-left light gradient */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .10) 45%, rgba(255, 255, 255, .06) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(1.06);
    backdrop-filter: blur(22px) saturate(1.7) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, .42);
    border-top-color: rgba(255, 255, 255, .75);     /* lit edge */
    border-left-color: rgba(255, 255, 255, .6);
    box-shadow:
        0 30px 70px -28px rgba(43, 74, 58, .55),    /* depth */
        0 8px 24px rgba(43, 74, 58, .10),
        inset 0 1px 0 rgba(255, 255, 255, .85),     /* top highlight */
        inset 0 -1px 0 rgba(255, 255, 255, .18),
        inset 0 0 44px rgba(255, 255, 255, .12);    /* inner glow */
    /* entrance only: a form people tap and type into must hold still (the sheen below keeps it alive) */
    animation: breezeIn 1s cubic-bezier(.2, .7, .2, 1) both;
}
/* diagonal specular sheen that slowly glides across the glass */
.page-auth-breeze .auth-card::before {
    content: "";
    position: absolute;
    inset: -40% -60%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
    transform: translateX(-60%);
    animation: glassSheen 11s ease-in-out 1.6s infinite;
}
/* faint brand-gold rim glow */
.page-auth-breeze .auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(184, 149, 90, .14);
}
/* keep copy readable on the thinner glass */
.page-auth-breeze .auth-card h1,
.page-auth-breeze .auth-card .muted { text-shadow: 0 1px 12px rgba(255, 255, 255, .55); }
.page-auth-breeze .auth-card .muted { color: rgba(43, 74, 58, .82); }

@keyframes breezeIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(8px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes glassSheen {
    0%, 55% { transform: translateX(-60%); }
    100%    { transform: translateX(60%); }
}

/* Browsers without backdrop-filter: fall back to a more opaque pane for legibility. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .page-auth-breeze .auth-card { background: rgba(255, 253, 248, .78); }
}

@media (max-width: 560px) {
    .breeze-stage { padding: 20px 12px; background-position: 45% 90%; }
    .page-auth-breeze .auth-card { -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
}
@media (prefers-reduced-motion: reduce) {
    .page-auth-breeze .auth-card { animation: none; }
    .page-auth-breeze .auth-card::before { animation: none; display: none; }
    .breeze-video { transition: none; }
}

/* =====================================================================
   Auth form (partials/auth-box) — aligned, consistent fields.
   Brand: deep green #2b4a3a, ivory, gold. Works on login + register.
   ===================================================================== */
[x-cloak] { display: none !important; }

.page-auth-breeze .auth-card {
    width: min(100%, 440px);
    padding: 34px 32px 28px;
    text-align: left;
}
.page-auth-breeze .auth-head { text-align: center; margin-bottom: 22px; }
.page-auth-breeze .auth-head h1 { margin: 0 0 8px; line-height: 1.2; }
.page-auth-breeze .auth-head .muted { margin: 0; font-size: .95rem; line-height: 1.45; }

.ab { display: grid; gap: 16px; }
.ab * { box-sizing: border-box; }

/* Google */
.ab-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; width: 100%;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .78); color: #1f2d26;
    font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
    box-shadow: 0 2px 10px rgba(43, 74, 58, .08);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.ab-google:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 74, 58, .16); }

/* Divider */
.ab-divider { display: flex; align-items: center; gap: 12px; color: rgba(43, 74, 58, .7); font-size: .8rem; }
.ab-divider::before, .ab-divider::after { content: ""; flex: 1; height: 1px; background: rgba(43, 74, 58, .22); }

/* Method tabs */
.ab-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
    border-radius: 12px; background: rgba(255, 255, 255, .38); border: 1px solid rgba(255, 255, 255, .55);
}
.ab-tabs button {
    height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
    font: inherit; font-weight: 600; font-size: .9rem; color: rgba(43, 74, 58, .75);
    transition: background .2s, color .2s, box-shadow .2s;
}
.ab-tabs button.is-active { background: #fff; color: #2b4a3a; box-shadow: 0 2px 8px rgba(43, 74, 58, .14); }
/* Touch screens: tabs and fields are comfortably finger-sized (≥ 44 px, GO-LIVE-PLAN §3.7). */
@media (pointer: coarse) {
    .ab-tabs button { height: 46px; }
    .ab input, .auth-card input { height: auto; min-height: 46px; }
}

/* Fields */
.ab-form { display: grid; gap: 14px; }
.ab-field { display: grid; gap: 6px; min-width: 0; }
.ab-field label, .ab-label-row label { font-size: .82rem; font-weight: 600; color: #2b4a3a; text-align: left; }
.ab-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ab-link, .ab-switch a { color: #8a4a5b; font-weight: 600; text-decoration: none; }
.ab-link { font-size: .8rem; }
.ab-link:hover, .ab-switch a:hover { text-decoration: underline; }

.ab input {
    display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .72); color: #1b2a22;
    font: inherit; font-size: 1rem;               /* 16px+ stops iOS zoom-on-focus */
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.ab input::placeholder { color: rgba(43, 74, 58, .45); }
.ab input:focus { background: #fff; border-color: #b8955a; box-shadow: 0 0 0 4px rgba(184, 149, 90, .22); }
.ab .has-error input { border-color: #c0485f; box-shadow: 0 0 0 3px rgba(192, 72, 95, .14); }
.ab-err { color: #b3283f; font-size: .78rem; line-height: 1.3; }

/* Password + eye (button sits inside the input, never shifts the layout) */
.ab-pw { position: relative; }
.ab-pw input { padding-right: 46px; }
.ab-eye {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 8px; background: transparent; color: #2b4a3a; cursor: pointer; opacity: .7;
}
.ab-eye:hover { opacity: 1; background: rgba(43, 74, 58, .08); }

/* OTP */
.ab-sent { margin: 0; text-align: center; font-size: .9rem; color: #2b4a3a; }
.ab-sent strong { overflow-wrap: anywhere; }
.ab-code { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: .5em; padding-left: calc(14px + .5em); }
.ab-row { display: flex; justify-content: space-between; gap: 8px; }
.ab-text {
    border: 0; background: none; padding: 4px 0; cursor: pointer;
    font: inherit; font-size: .85rem; font-weight: 600; color: #2b4a3a;
}
.ab-text:hover:not(:disabled) { text-decoration: underline; }
.ab-text:disabled { opacity: .5; cursor: default; }

/* Primary button */
.ab-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(180deg, #2f5642, #234234); color: #fff;
    font: inherit; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 22px -10px rgba(35, 66, 52, .7);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.ab-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(35, 66, 52, .75); }
.ab-btn:disabled { opacity: .6; cursor: not-allowed; }
.ab-btn.is-loading span { opacity: 0; }
.ab-btn.is-loading::after {
    content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: abSpin .7s linear infinite;
}
@keyframes abSpin { to { transform: rotate(360deg); } }

.ab-alert {
    margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .85rem; line-height: 1.35;
    color: #8c1f35; background: rgba(255, 235, 238, .85); border: 1px solid rgba(192, 72, 95, .3);
}
.ab-switch { margin: 2px 0 0; text-align: center; font-size: .9rem; color: rgba(43, 74, 58, .85); }

.ab-btn:focus-visible, .ab-google:focus-visible, .ab-tabs button:focus-visible,
.ab-text:focus-visible, .ab-eye:focus-visible { outline: 3px solid rgba(184, 149, 90, .6); outline-offset: 2px; }

@media (max-width: 560px) {
    .page-auth-breeze .auth-card { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-btn, .ab-google, .ab-tabs button, .ab input { transition: none; }
    .ab-btn.is-loading::after { animation-duration: 1.6s; }
}
