/* ==========================================================================
   Login — "Pump Hero" (login-sample-1.html)
   Dark animated brand panel (left) + clean white form panel (right).
   Loaded after style.css so these rules win.
   ========================================================================== */

:root {
   --ph-red: #ff1e41;
   --ph-red-ink: #d50c2d;          /* red for text on white: 5.4:1 */
   --ph-orange: #f7941d;
   --ph-blue: #0a4ea3;
   --ph-sky: #3aa0e8;
   --ph-navy-0: #0b1220;
   --ph-navy-1: #1a2238;
   --ph-ink: #101828;
   --ph-muted: #5a6378;             /* 6.0:1 on white */
   --ph-line: #e3e7ef;
   --ph-field: #f7f9fc;
   --ph-radius: 14px;
   --ph-ease: cubic-bezier(.22, 1, .36, 1);
   --ph-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Page frame ---------------------------------------------------------- */
html, body.ph-page { height: 100%; }

body.ph-page {
   margin: 0;
   min-height: 100vh;
   overflow-x: hidden;
   background: #ffffff;
   font-family: var(--ph-font);
   color: var(--ph-ink);
   -webkit-font-smoothing: antialiased;
}

/* The theme paints a white curtain (body::after) until main.js adds .loaded;
   this page doesn't load main.js, so drop the curtain entirely. */
body.ph-page::after { display: none !important; }

/* The loader only appears when ui.js showLoader() sets display:flex inline. */
body.ph-page #overlayer {
   display: none;
   visibility: visible;
   opacity: 1;
   align-items: center;
   justify-content: center;
   background: rgba(255, 255, 255, .72);
   -webkit-backdrop-filter: blur(3px);
   backdrop-filter: blur(3px);
}

.ph-shell {
   display: flex;
   min-height: 100vh;
   width: 100%;
}

/* ==========================================================================
   Visual panel
   ========================================================================== */
.ph-visual {
   position: relative;
   flex: 0 0 55%;
   max-width: 55%;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   padding: 36px clamp(32px, 4.5vw, 72px) 40px;
   overflow: hidden;
   isolation: isolate;
   color: #fff;
   background:
      radial-gradient(120% 80% at 100% 0%, rgba(10, 78, 163, .35) 0%, rgba(10, 78, 163, 0) 55%),
      linear-gradient(160deg, var(--ph-navy-0) 0%, #111a2e 45%, var(--ph-navy-1) 100%);
   animation: ph-slide-in .9s var(--ph-ease) both;
}

/* fine grid texture */
.ph-visual::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background-image:
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
   background-size: 44px 44px;
   -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 0%, transparent 75%);
   mask-image: radial-gradient(80% 70% at 50% 45%, #000 0%, transparent 75%);
}

/* bokeh */
.ph-bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-bokeh span {
   position: absolute;
   border-radius: 50%;
   filter: blur(28px);
   opacity: .55;
   animation: ph-drift 22s ease-in-out infinite alternate;
}
.ph-bokeh span:nth-child(1) { width: 260px; height: 260px; left: -60px; top: 12%; background: rgba(255, 30, 65, .45); }
.ph-bokeh span:nth-child(2) { width: 180px; height: 180px; right: 6%; top: 6%; background: rgba(58, 160, 232, .35); animation-duration: 26s; animation-delay: -6s; }
.ph-bokeh span:nth-child(3) { width: 140px; height: 140px; left: 38%; bottom: 8%; background: rgba(247, 148, 29, .35); animation-duration: 19s; animation-delay: -3s; }
.ph-bokeh span:nth-child(4) { width: 90px; height: 90px; right: 14%; bottom: 28%; background: rgba(255, 30, 65, .4); filter: blur(18px); animation-duration: 17s; animation-delay: -9s; }
.ph-bokeh span:nth-child(5) { width: 60px; height: 60px; left: 18%; top: 48%; background: rgba(255, 255, 255, .18); filter: blur(12px); animation-duration: 24s; animation-delay: -12s; }
.ph-bokeh span:nth-child(6) { width: 220px; height: 220px; right: -70px; bottom: -40px; background: rgba(10, 78, 163, .5); animation-duration: 30s; }

.ph-visual__top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
}
/* Compact brand lockup: small mark + wordmark, so it takes little space. */
.ph-brand {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   text-decoration: none;
   font-family: var(--ph-font);
   font-weight: 700;
   letter-spacing: -.01em;
   line-height: 1;
   transition: transform .25s var(--ph-ease);
}
.ph-brand:hover { transform: scale(1.03); text-decoration: none; }
.ph-brand img { display: block; border-radius: 9px; box-shadow: 0 4px 12px rgba(255, 30, 65, .28); }
.ph-brand--light { color: #fff; font-size: 17px; }
.ph-brand--light:hover, .ph-brand--light:focus { color: #fff; }
.ph-brand--light img { width: 32px; height: 32px; }
.ph-brand--dark { color: #0f172a; font-size: 20px; }
.ph-brand--dark:hover, .ph-brand--dark:focus { color: #0f172a; }
.ph-brand--dark img { width: 34px; height: 34px; }
.ph-visual__badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 6px 12px;
   border-radius: 999px;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: .08em;
   color: #dfe5f1;
   background: rgba(255, 255, 255, .06);
   border: 1px solid rgba(255, 255, 255, .12);
}
.ph-visual__dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #3ddc84;
   box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
   animation: ph-ping 2.4s ease-out infinite;
}

.ph-visual__hero {
   flex: 1 1 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 0;
   padding: 8px 0;
}

/* The stage keeps the SVG and the Lottie in the same 360x420 box so the
   HTML read-out lines up with either. */
.ph-stage {
   position: relative;
   width: clamp(220px, calc(50vh * .857), 400px);
   aspect-ratio: 360 / 420;
   container-type: inline-size;
}
.ph-stage::before {               /* red/orange glow */
   content: "";
   position: absolute;
   left: 50%;
   top: 52%;
   width: 150%;
   aspect-ratio: 1;
   transform: translate(-50%, -50%);
   z-index: -1;
   border-radius: 50%;
   background: radial-gradient(closest-side, rgba(255, 30, 65, .42) 0%, rgba(247, 148, 29, .16) 45%, rgba(255, 30, 65, 0) 75%);
   animation: ph-glow 6s ease-in-out infinite;
}
.ph-pump, .ph-lottie {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   display: block;
   overflow: visible;
}
.ph-lottie { visibility: hidden; }
.ph-stage.is-lottie .ph-pump { visibility: hidden; }
.ph-stage.is-lottie .ph-lottie { visibility: visible; }

.ph-pump__brand {
   font-family: var(--ph-font);
   font-size: 15px;
   font-weight: 800;
   letter-spacing: 5px;
   fill: #fff;
}

/* --- SVG motion ---------------------------------------------------------- */
.ph-pump * { transform-box: view-box; }

.ph-liquid {
   animation: ph-fill 6s linear infinite;
}
.ph-wave--front { animation: ph-wave 2.6s linear infinite; }
.ph-wave--back  { animation: ph-wave 3.8s linear infinite reverse; }

.ph-bubble {
   opacity: 0;
   animation: ph-bubble 3s ease-in infinite;
}
.ph-bubble:nth-of-type(2) { animation-delay: 1.1s; animation-duration: 3.4s; }
.ph-bubble:nth-of-type(3) { animation-delay: 2s;   animation-duration: 2.7s; }

.ph-sway {
   transform-origin: 236px 136px;
   animation: ph-sway 4.8s ease-in-out infinite;
}
.ph-drop {
   transform-box: fill-box;
   transform-origin: 50% 0;
   opacity: 0;
   animation: ph-drop 2.4s cubic-bezier(.55, 0, 1, .45) infinite;
}
.ph-drop--2 { animation-delay: 1.2s; }
.ph-ripple {
   transform-box: fill-box;
   transform-origin: 50% 50%;
   opacity: 0;
   animation: ph-ripple 1.2s ease-out infinite;
   animation-delay: 1.75s;
}
.ph-grade { animation: ph-blink 2s ease-in-out infinite; }

/* --- Pump read-out (HTML overlay over the screen bezel) ------------------ */
.ph-screen {
   position: absolute;
   left: calc(80 / 360 * 100%);
   top: calc(105 / 420 * 100%);
   width: calc(126 / 360 * 100%);
   height: calc(68 / 420 * 100%);
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: .9cqw;
   padding: 0 1.4cqw;
   font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
   font-variant-numeric: tabular-nums;
   pointer-events: none;
}
.ph-screen__row {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
   gap: 4px;
   line-height: 1;
}
.ph-screen__lbl {
   font-size: 2.3cqw;
   letter-spacing: .08em;
   color: #8d97ad;
}
.ph-screen__val {
   font-size: 5.4cqw;
   font-weight: 700;
   color: #ffc15a;
   text-shadow: 0 0 2.2cqw rgba(255, 170, 60, .55);
}
.ph-screen__val--alt { color: #8fd3ff; text-shadow: 0 0 2.2cqw rgba(58, 160, 232, .55); }
.ph-screen__price {
   font-size: 2.1cqw;
   letter-spacing: .06em;
   color: #8d97ad;
   text-align: right;
   line-height: 1;
}
.ph-screen__price b { color: #e6ebf5; font-weight: 600; }

/* --- Copy + chips -------------------------------------------------------- */
.ph-visual__copy { position: relative; }
.ph-visual__title {
   margin: 0 0 10px;
   font-family: var(--ph-font);
   font-size: clamp(32px, 3.1vw, 46px);
   font-weight: 800;
   line-height: 1.08;
   letter-spacing: -.025em;
   color: #fff;
}
.ph-visual__title::after {
   content: "";
   display: block;
   width: 56px;
   height: 4px;
   margin-top: 16px;
   border-radius: 4px;
   background: linear-gradient(90deg, var(--ph-red), var(--ph-orange));
}
.ph-visual__lead {
   max-width: 470px;
   margin: 0 0 22px;
   font-size: 16px;
   line-height: 1.6;
   color: #b8c1d4;          /* 9.6:1 on the navy */
}
.ph-chips {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin: 0;
   padding: 0;
   list-style: none;
}
.ph-chips li {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 9px 14px;
   border-radius: 999px;
   font-size: 13px;
   font-weight: 500;
   color: #e6ebf5;
   background: rgba(255, 255, 255, .06);
   border: 1px solid rgba(255, 255, 255, .12);
   -webkit-backdrop-filter: blur(6px);
   backdrop-filter: blur(6px);
   transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ph-chips li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.ph-chips li i { font-size: 16px; color: var(--ph-orange); }

/* ==========================================================================
   Form panel
   ========================================================================== */
.ph-panel {
   flex: 1 1 45%;
   min-width: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 48px clamp(24px, 5vw, 80px) 24px;
   background: #ffffff;
}
.ph-panel__inner {
   width: 100%;
   max-width: 420px;
   margin: auto 0;
}

.ph-head { margin-bottom: 28px; }
.ph-head__logo { margin-bottom: 22px; border-radius: 10px; }
.ph-head__logo:focus-visible { outline: 3px solid rgba(255, 30, 65, .45); outline-offset: 4px; }
.ph-head__title {
   margin: 0 0 6px;
   font-family: var(--ph-font);
   font-size: 30px;
   font-weight: 700;
   letter-spacing: -.02em;
   line-height: 1.2;
   color: var(--ph-ink);
}
.ph-head__sub {
   margin: 0;
   font-size: 15px;
   color: var(--ph-muted);
}

body.ph-page #error-container {
   margin-bottom: 20px;
   padding: 12px 16px;
   border-radius: 12px;
   font-size: 14px;
   border: 1px solid #f5c2c7;
}

.ph-form { margin: 0; }
.ph-group { margin-bottom: 20px; }
.ph-label {
   display: block;
   margin-bottom: 8px;
   font-size: 14px;
   font-weight: 600;
   color: #344054;
   text-transform: none;
}

.ph-field { position: relative; }
.ph-field__icon {
   position: absolute;
   left: 16px;
   top: 26px;                       /* half the input height — stays put when feedback appears */
   transform: translateY(-50%);
   font-size: 20px;
   line-height: 1;
   color: #8a93a7;
   pointer-events: none;
   transition: color .2s ease;
}
.ph-field:focus-within .ph-field__icon { color: var(--ph-red); }

.ph-form .form-control.ph-input {
   height: 52px;
   padding: 0 16px 0 48px;
   font-family: var(--ph-font);
   font-size: 15px;
   color: var(--ph-ink);
   background-color: var(--ph-field);
   border: 1.5px solid var(--ph-line);
   border-radius: var(--ph-radius);
   box-shadow: none;
   transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ph-form .form-control.ph-input--pw { padding-right: 52px; }
.ph-form .form-control.ph-input::placeholder { color: #8a93a7; opacity: 1; }
.ph-form .form-control.ph-input:hover { border-color: #cfd5e1; }
.ph-form .form-control.ph-input:focus {
   background-color: #fff;
   border-color: var(--ph-red);
   box-shadow: 0 0 0 4px rgba(255, 30, 65, .15);
   outline: none;
}
.ph-form .form-control.ph-input.is-invalid {
   background-image: none;
   border-color: #e5484d;
   padding-right: 16px;
}
.ph-form .form-control.ph-input--pw.is-invalid { padding-right: 52px; }
.ph-form .form-control.ph-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); }
.ph-form .form-control.ph-input.is-valid { background-image: none; border-color: #c6e9d5; }
.ph-form .form-control.ph-input.is-valid:focus { border-color: var(--ph-red); }
.ph-form .invalid-feedback {
   margin-top: 6px;
   font-size: 13px;
   color: #c62a2f;
}
.ph-form .form-control:disabled { opacity: .7; }

.ph-eye {
   position: absolute;
   right: 6px;
   top: 6px;
   width: 40px;
   height: 40px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   border: 0;
   border-radius: 10px;
   background: transparent;
   font-size: 19px;
   color: #6b7489;
   cursor: pointer;
   transition: background-color .2s ease, color .2s ease;
}
.ph-eye:hover { background: #eef1f6; color: var(--ph-ink); }
.ph-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 30, 65, .35); color: var(--ph-ink); }

.ph-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 10px 16px;
   margin: 4px 0 26px;
}
.ph-check {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   margin: 0;
   font-size: 14px;
   color: #344054;
   cursor: pointer;
   user-select: none;
}
.ph-check__box {
   width: 18px;
   height: 18px;
   margin: 0;
   accent-color: var(--ph-red);
   cursor: pointer;
}
.ph-check__box:focus-visible { outline: 3px solid rgba(255, 30, 65, .4); outline-offset: 2px; }

.ph-link {
   font-size: 14px;
   font-weight: 600;
   color: var(--ph-red-ink);
   text-decoration: none;
   border-radius: 4px;
   transition: color .2s ease;
}
.ph-link:hover { color: #a50822; text-decoration: underline; text-underline-offset: 3px; }
.ph-link:focus-visible { outline: 3px solid rgba(255, 30, 65, .4); outline-offset: 2px; }

.ph-btn {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   width: 100%;
   height: 54px;
   padding: 0 24px;
   border: 0;
   border-radius: var(--ph-radius);
   font-family: var(--ph-font);
   font-size: 16px;
   font-weight: 600;
   letter-spacing: .01em;
   color: #fff;
   background: linear-gradient(135deg, #e8173a 0%, #c50d2c 100%);   /* white text ≥ 4.5:1 */
   box-shadow: 0 10px 24px -10px rgba(255, 30, 65, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
   cursor: pointer;
   overflow: hidden;
   transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease), filter .2s ease;
}
.ph-btn::after {                     /* arrow; pseudo so setFormLoading's text swap can't drop it */
   content: "→";
   font-size: 18px;
   line-height: 1;
   transition: transform .2s var(--ph-ease);
}
.ph-btn::before {                    /* sheen */
   content: "";
   position: absolute;
   top: 0;
   left: -60%;
   width: 40%;
   height: 100%;
   background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
   transform: skewX(-20deg);
   transition: left .6s var(--ph-ease);
}
.ph-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 16px 30px -12px rgba(255, 30, 65, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
   filter: saturate(1.08);
}
.ph-btn:hover::after { transform: translateX(4px); }
.ph-btn:hover::before { left: 120%; }
.ph-btn:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(255, 30, 65, .7); }
.ph-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 30, 65, .3), 0 10px 24px -10px rgba(255, 30, 65, .7); }
.ph-btn:disabled { cursor: progress; transform: none; filter: saturate(.85); opacity: .9; }
.ph-btn:disabled::after, .ph-btn:disabled::before { display: none; }
.ph-btn .spinner-border { width: 1.1rem; height: 1.1rem; border-width: .16em; }

/* --- OTP step ------------------------------------------------------------ */
#otpForm:not(.d-none) { animation: ph-rise .5s var(--ph-ease) both; }
.ph-otp-head {
   display: flex;
   align-items: flex-start;
   gap: 14px;
   margin-bottom: 22px;
   padding: 14px 16px;
   border-radius: var(--ph-radius);
   background: #fff5f6;
   border: 1px solid #ffe0e5;
}
.ph-otp-head__icon {
   flex: 0 0 auto;
   width: 40px;
   height: 40px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 12px;
   font-size: 20px;
   color: #fff;
   background: linear-gradient(135deg, var(--ph-red), var(--ph-orange));
}
.ph-otp-head__title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--ph-ink); }
.ph-otp-head__dest  { margin: 0; font-size: 13px; color: var(--ph-muted); }
.ph-otp-head__dest:empty::before { content: "Enter the 6-digit code we sent you."; }

.ph-otp {
   display: flex;
   gap: 10px;
   justify-content: space-between;
}
.ph-otp .otp-digit {
   flex: 1 1 0;
   min-width: 0;
   height: 58px;
   padding: 0;
   text-align: center;
   font-family: var(--ph-font);
   font-size: 24px;
   font-weight: 700;
   line-height: 1;
   color: var(--ph-ink);
   background: var(--ph-field);
   border: 1.5px solid var(--ph-line);
   border-radius: var(--ph-radius);
   caret-color: var(--ph-red);
   transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}
.ph-otp .otp-digit:hover { border-color: #cfd5e1; }
.ph-otp .otp-digit:focus {
   outline: none;
   background: #fff;
   border-color: var(--ph-red);
   box-shadow: 0 0 0 4px rgba(255, 30, 65, .15);
   transform: translateY(-1px);
}
.ph-otp .otp-digit.is-filled { background: #fff; border-color: var(--ph-red); }
#otpForm .invalid-feedback { margin-top: 8px; font-size: 13px; color: #c62a2f; }
#otpForm .ph-group { margin-bottom: 24px; }
.ph-otp-back { margin: 18px 0 0; text-align: center; }
.ph-otp-back .ph-link { display: inline-flex; align-items: center; gap: 6px; }

.ph-secure {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   margin: 26px 0 0;
   font-size: 13px;
   color: var(--ph-muted);
   text-align: center;
}
.ph-secure i { font-size: 15px; color: #2f9e6a; }

.ph-foot {
   width: 100%;
   max-width: 420px;
   margin-top: 32px;
   padding-top: 18px;
   border-top: 1px solid #eef1f6;
   font-size: 13px;
   color: var(--ph-muted);
   text-align: center;
}

/* --- Entrance ------------------------------------------------------------ */
.ph-rise { animation: ph-rise .7s var(--ph-ease) both; animation-delay: var(--d, 0s); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes ph-slide-in { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes ph-rise     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ph-drift {
   0%   { transform: translate(0, 0) scale(1); }
   50%  { transform: translate(40px, -30px) scale(1.12); }
   100% { transform: translate(-30px, 24px) scale(.94); }
}
@keyframes ph-glow { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
/* 0–75% fill, 75–90% hold, 90–100% fade (kept in sync with the JS counter) */
@keyframes ph-fill {
   0%   { transform: translateY(112px); opacity: 1; }
   75%  { transform: translateY(6px);   opacity: 1; }
   90%  { transform: translateY(6px);   opacity: 1; }
   100% { transform: translateY(6px);   opacity: 0; }
}
@keyframes ph-wave   { from { transform: translateX(0); } to { transform: translateX(-54px); } }
@keyframes ph-bubble {
   0%   { opacity: 0;  transform: translateY(0); }
   15%  { opacity: .7; }
   85%  { opacity: .5; }
   100% { opacity: 0;  transform: translateY(-86px); }
}
@keyframes ph-sway   { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.6deg); } }
@keyframes ph-drop {
   0%   { opacity: 0; transform: translateY(0) scale(.4); }
   12%  { opacity: 1; transform: translateY(2px) scale(1); }
   70%  { opacity: .9; }
   78%  { opacity: 0; transform: translateY(70px) scale(.9, 1.15); }
   100% { opacity: 0; transform: translateY(70px); }
}
@keyframes ph-ripple {
   0%   { opacity: .8; transform: scale(.3); }
   100% { opacity: 0;  transform: scale(2.2); }
}
@keyframes ph-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@keyframes ph-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ==========================================================================
   < 992px — visual panel collapses to a compact top band
   ========================================================================== */
@media (max-width: 991.98px) {
   .ph-shell { flex-direction: column; }
   .ph-visual {
      flex: 0 0 auto;
      max-width: none;
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-areas:
         "top  hero"
         "copy hero";
      align-items: center;
      column-gap: 12px;
      padding: 20px 20px 22px;
      border-radius: 0 0 24px 24px;
      animation-name: ph-slide-down;
   }
   .ph-visual__top  { grid-area: top; align-self: start; }
   .ph-visual__hero { grid-area: hero; padding: 0; }
   .ph-visual__copy { grid-area: copy; align-self: end; }
   .ph-visual__badge { display: none; }
   .ph-brand--light { font-size: 16px; }
   .ph-brand--light img { width: 28px; height: 28px; }
   .ph-stage { width: clamp(120px, 34vw, 190px); }
   .ph-visual__title { font-size: clamp(22px, 5.6vw, 32px); margin-bottom: 0; }
   .ph-visual__title::after { width: 40px; height: 3px; margin-top: 10px; }
   .ph-visual__lead, .ph-chips { display: none; }
   .ph-bokeh span { filter: blur(22px); }

   .ph-panel { padding: 32px 20px 20px; justify-content: flex-start; }
   .ph-panel__inner { margin: 0; }
   .ph-head { margin-bottom: 24px; }
   .ph-head__logo { display: none; }          /* brand already shown in the band */
   .ph-head__title { font-size: 26px; }
}
@media (min-width: 600px) and (max-width: 991.98px) {
   .ph-visual__lead { display: block; margin: 10px 0 0; font-size: 14px; }
}
@media (max-width: 380px) {
   .ph-otp { gap: 7px; }
   .ph-otp .otp-digit { height: 52px; font-size: 20px; }
}
@keyframes ph-slide-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }

/* Short desktop screens: tighten the hero */
@media (min-width: 992px) and (max-height: 760px) {
   .ph-stage { width: clamp(200px, calc(42vh * .857), 400px); }
   .ph-visual__lead { margin-bottom: 16px; }
}

/* ==========================================================================
   Reduced motion: no looping motion, static half-full tank
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
   .ph-visual, .ph-rise, #otpForm:not(.d-none) { animation: none !important; }
   .ph-bokeh span, .ph-stage::before, .ph-wave, .ph-bubble, .ph-sway,
   .ph-drop, .ph-ripple, .ph-grade, .ph-visual__dot { animation: none !important; }
   .ph-liquid { animation: none !important; transform: translateY(34px); }
   .ph-btn, .ph-btn::after, .ph-btn::before, .ph-chips li, .ph-otp .otp-digit { transition: none; }
   .ph-btn:hover { transform: none; }
}
