/* Zinkly redesign 2026: sign-in portal (login, create account and the other account pages).
   Loaded after zk-portal.css / zk-portal-real.css / zk-portal-2.css and overrides them.
   Calm editorial look: neutral paper and ink, one accent (the site brand colour), hairlines,
   no glows, no aurora, no floating cards. Signature: a hairline that opens into a pill-shaped
   window onto a looping video (desktop only). Fields, buttons and scripts are unchanged. */

html:has(.zkp-body), .zkp-body { background: #0d0d0f; }
html.light:has(.zkp-body), html.light .zkp-body { background: #f2f1ed; }

.zkp-body {
    --ink: #0d0d0f; --card: #151517; --field: #0f0f11; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18);
    --txt: #f2f1ed; --mute: #a3a29d; --faint: #75746f;
    --acc: var(--zk-brand, #7c5cff);
    --acc-text: color-mix(in srgb, var(--acc) 62%, #fff);
    --btn: #f2f1ed; --btn-txt: #0d0d0f;
}
html.light .zkp-body {
    --ink: #f2f1ed; --card: #ffffff; --field: #ffffff; --line: rgba(20,20,18,.12); --line-2: rgba(20,20,18,.22);
    --txt: #161614; --mute: #55544f; --faint: #85847e;
    --acc-text: color-mix(in srgb, var(--acc) 80%, #000);
    --btn: #161614; --btn-txt: #f7f6f2;
}

/* background: no aurora, no grid; a faint paper grain only */
.zkp-aur, .zkp-grid, .zkp-star { display: none !important; }
.zkp-grain { opacity: .035; }
html.light .zkp-grain { opacity: .05; }

/* top bar: the site's own logo, wordmark in ink (never the link colour) */
html body.zkp-body a.zkp-brand { color: var(--txt) !important; text-decoration: none; gap: 0; }
.zkp-brand .zkl-logo { gap: 9px; }
.zkp-brand .zkl-logo svg, .zkp-brand .zkl-logo img { width: 26px; height: 26px; }
html body.zkp-body .zkp-brand .zinkly-wordmark { color: var(--txt) !important; font-size: 17px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.zkp-brand:hover .zinkly-wordmark { opacity: .8; }
.zkp-brand:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 6px; }

/* layout */
@media (min-width: 1024px) {
    .zkp-main { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); max-width: 1320px; padding: 0 56px 40px; }
}

/* story side */
.zkp-story { text-align: start; }
.zkp-kicker {
    display: flex; align-items: center; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none;
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.zkp-kicker::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.zkl-k { display: none; }
.zkp-login .zkl-k-login, .zkp-register .zkl-k-register, .zkp-is-plain .zkl-k-plain { display: inline; }

.zkp-hero {
    margin-top: 18px; font-size: clamp(40px, 5.4vw, 84px); font-weight: 700; line-height: .96; letter-spacing: -.048em;
    color: var(--txt); text-wrap: balance;
}
.zkp-hero-mark { display: inline; white-space: normal; color: var(--faint); }
.zkp-hero-mark svg { display: none; }

/* the pill: a hairline that opens into a window onto the video */
.zkl-pill {
    position: relative; display: none; margin-top: clamp(28px, 4vh, 44px); height: clamp(150px, 26vh, 250px);
    border-radius: 999px; overflow: hidden; background: #1c1c1f; isolation: isolate;
}
html.light .zkl-pill { background: #dcdad3; }
@media (min-width: 1024px) { .zkl-pill { display: block; } }
.zkl-pill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity .9s ease; }
.zkl-pill.is-playing video { opacity: 1; }
.zkl-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.zkl-pill.is-off { display: none !important; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .zkl-pill { animation: zklOpen 1.25s cubic-bezier(.65,0,.2,1) .15s both; }
}
@keyframes zklOpen {
    0%   { clip-path: inset(calc(50% - 1px) 50% round 999px); }
    32%  { clip-path: inset(calc(50% - 1px) 0 round 999px); }
    100% { clip-path: inset(0 0 round 999px); }
}

/* 26 Nov: when an admin switches the video window off, the headline carries the left side alone */
@media (min-width: 1024px) {
    .zkp-story:not(:has(.zkl-pill)) .zkp-hero { font-size: clamp(52px, 6.4vw, 104px); }
}
.zkl-pill.is-still { animation: none !important; }

/* 26 Nov: laptops (MacBook etc.): the left side stays centred in the visible screen while the
   (taller) sign-in card scrolls; on short screens the card is more compact so more of it fits */
@media (min-width: 1024px) {
    .zkp-main { align-items: start; }
    .zkp-story {
        position: sticky; top: 0; align-self: start;
        min-height: calc(100vh - 100px); min-height: calc(100dvh - 100px);
        display: flex; flex-direction: column; justify-content: center; padding: 0 0 48px;
    }
    .zkp-dock-wrap { padding-top: 4px; }
}
@media (min-width: 1024px) and (max-height: 940px) {
    .zkp-top { padding-top: 18px; padding-bottom: 14px; }
    .zkp-dock { padding: 22px 26px; }
    .zkp-switch a { padding-bottom: 11px; }
    .zkp-title { margin-top: 18px; font-size: 23px; }
    .zkp-sub { margin-top: 4px; font-size: 13.5px; }
    .zkp-form { margin-top: 16px; }
    .zkp-form > * + * { margin-top: 10px !important; }
    .zkp-f .zinkly-input { height: 52px; padding-top: 22px !important; padding-bottom: 6px !important; }
    .zkp-f:has(.zinkly-input:focus) label.zkp-l, .zkp-f:has(.zinkly-input:not(:placeholder-shown)) label.zkp-l,
    .zkp-f .zinkly-input:focus ~ label.zkp-l, .zkp-f .zinkly-input:not(:placeholder-shown) ~ label.zkp-l { top: 8px; }
    .zkp-go { height: 48px; margin-top: 4px; }
    .zkp-dock .mt-6.flex.items-center.gap-3 { margin-top: 14px; }
    .zkp-dock .rounded-xl.border.bg-zinkly-surface { margin-top: 8px; padding-top: 10px; padding-bottom: 10px; }
    .zkp-dock .zinkly-btn-secondary { height: 44px; }
    .zkp-switchline { margin-top: 14px; }
    .zkp-legal { margin-top: 8px; }
    .zkl-pill { height: clamp(130px, 22vh, 200px); margin-top: 24px; }
    .zkp-hero { font-size: clamp(40px, 4.8vw, 72px); }
}
.zkl-under { display: none; align-items: flex-start; gap: 28px; margin-top: 34px; }
@media (min-width: 1024px) { .zkl-under { display: flex; } }
.zkp-lede { margin: 0; max-width: 23rem; font-size: 15px; line-height: 1.6; color: var(--mute); }
.zkl-rule { flex: 1; height: 1px; margin-top: 12px; background: var(--line-2); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
    .zkl-rule { animation: zklRule 1s cubic-bezier(.2,.8,.2,1) .7s both; }
    .zkp-story > .zkp-kicker, .zkp-story > .zkp-hero { animation: zklRise .7s cubic-bezier(.2,.8,.2,1) both; }
    .zkp-story > .zkp-hero { animation-delay: .06s; }
    .zkp-dock-wrap { animation: zklRise .7s cubic-bezier(.2,.8,.2,1) .12s both; }
}
@keyframes zklRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes zklRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* phones and tablets: a short headline above the form */
@media (max-width: 1023px) {
    .zkp-main { gap: 22px; padding: 8px 20px 28px; }
    .zkp-hero { font-size: clamp(34px, 9vw, 52px); margin-top: 12px; }
    .zkp-dock-wrap { margin: 0; max-width: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .zkp-main { max-width: 520px; }
}
/* 26 Nov: phones and tablets: everything centred on one axis (your feedback) */
@media (max-width: 1023px) {
    .zkp-main { justify-items: center; padding-top: 18px; gap: 26px; }
    .zkp-story { text-align: center; width: 100%; }
    .zkp-kicker { justify-content: center; }
    .zkp-kicker::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }
    .zkp-hero { margin-left: auto; margin-right: auto; max-width: 14ch; }
    .zkp-dock-wrap { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
    .zkp-foot { align-items: center; text-align: center; }
    .zkp-title, .zkp-sub { text-align: center; }
    .zkp-row { flex-wrap: nowrap; font-size: 13px; }
    .zkp-row .zkp-link, .zkp-row .zkp-check { white-space: nowrap; }
    .zkp-row .zkp-check { gap: 7px; }
}
@media (max-width: 360px) { .zkp-row { font-size: 12px; } }

/* the form card */
.zkp-dock-wrap { max-width: 430px; }
.zkp-dock {
    padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -48px rgba(0,0,0,.7);
}
html.light .zkp-dock { box-shadow: 0 30px 60px -44px rgba(30,28,20,.35); }
.zkp-dock::before { display: none; }
@media (max-width: 639px) { .zkp-dock { padding: 22px 18px; border-radius: 18px; } }

/* Sign in / Create account: text tabs with a sliding underline */
.zkp-switch { padding: 0; border: 0; border-radius: 0; background: none !important; border-bottom: 1px solid var(--line); }
.zkp-switch a { padding: 4px 4px 14px; border-radius: 0; font-size: 14.5px; font-weight: 600; color: var(--faint); }
.zkp-switch a:hover { color: var(--mute); }
.zkp-switch a.is-on { color: var(--txt); }
.zkp-switch-pill { top: auto; bottom: -1px; left: 0; width: 50%; height: 2px; border-radius: 2px; background: var(--txt); box-shadow: none; }

.zkp-title { margin-top: 26px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; }
.zkp-sub { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* fields */
.zkp-form { margin-top: 22px; }
.zkp-form > * + *, .zkp-pane.space-y-3\.5 > * + * { margin-top: 14px !important; }
.zkp-f .zinkly-input {
    height: 58px; padding: 25px 16px 8px 48px !important; border-radius: 12px !important;
    background: var(--field) !important; border: 1px solid var(--line) !important; color: var(--txt) !important; font-size: 15px;
}
.zkp-f .zinkly-input:hover { border-color: var(--line-2) !important; }
.zkp-f .zinkly-input:focus { border-color: var(--acc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent) !important; background: var(--field) !important; }
.zkp-f label.zkp-l { left: 48px; font-size: 15px; color: var(--faint); }
.zkp-f .zinkly-input:focus ~ label.zkp-l, .zkp-f .zinkly-input:not(:placeholder-shown) ~ label.zkp-l, .zkp-f.is-date label.zkp-l,
.zkp-f:has(.zinkly-input:focus) label.zkp-l, .zkp-f:has(.zinkly-input:not(:placeholder-shown)) label.zkp-l,
.zkp-f:has(.zinkly-input:-webkit-autofill) label.zkp-l, .zkp-f:has(.zinkly-input:autofill) label.zkp-l, .zkp-f.is-filled label.zkp-l {
    top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--mute);
}
.zkp-f .zkp-ic { left: 16px; width: 19px; height: 19px; color: var(--faint); }
.zkp-f:focus-within .zkp-ic { color: var(--txt); }
.zkp-f .zinkly-input:-webkit-autofill, .zkp-f .zinkly-input:-webkit-autofill:hover, .zkp-f .zinkly-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important; box-shadow: 0 0 0 1000px var(--field) inset !important;
}

.zkp-row { font-size: 13.5px; }
.zkp-check input { border-radius: 5px; accent-color: var(--acc); }
.zkp-link { color: var(--acc-text); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.zkp-link:hover { text-decoration-color: currentColor; }
html.light .zkp-link { color: var(--acc-text); }

/* main button: solid ink, no gradient, no glow, no shine */
.zkp-go {
    height: 54px; margin-top: 8px; border-radius: 12px; font-size: 15.5px; font-weight: 700; letter-spacing: -.005em;
    background: var(--btn) !important; color: var(--btn-txt); box-shadow: none !important; transition: opacity .15s, transform .12s;
}
.zkp-go::after { display: none; }
.zkp-go:hover { opacity: .9; }
.zkp-go:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.zkp-go svg { width: 18px; height: 18px; }

/* passkey and other secondary buttons in the card */
.zkp-dock .zinkly-btn-secondary { height: 50px; border-radius: 12px !important; background: transparent !important; border: 1px solid var(--line) !important; color: var(--txt) !important; font-weight: 600; box-shadow: none !important; }
.zkp-dock .zinkly-btn-secondary:hover { border-color: var(--line-2) !important; background: color-mix(in srgb, var(--txt) 4%, transparent) !important; }
.zkp-dock .rounded-xl.border { border-radius: 12px; }

.zkp-switchline { margin-top: 22px; font-size: 13.5px; }
.zkp-legal { margin-top: 14px; font-size: 11.5px; }

/* sign-up steps and other account pages: same accent, no gradients */
.zkp-step i { background: var(--txt); }
.zkp-plain .zinkly-input { border-radius: 12px !important; background: var(--field) !important; border: 1px solid var(--line) !important; }
.zkp-plain .zinkly-input:focus { border-color: var(--acc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent) !important; }
.zkp-plain .zinkly-btn-primary, .zkp-plain button[type=submit]:not(.zkp-ghost) { border-radius: 12px !important; font-weight: 700; background: var(--btn) !important; color: var(--btn-txt) !important; box-shadow: none !important; }
/* the Human look (zk-human.css) forces white button text with a two-ID selector, so this one has three */
html:not(#zkl-a):not(#zkl-b):not(#zkl-c) body.zkp-body .zkp-page.zkp-plain :is(.zinkly-btn-primary, button[type=submit]:not(.zkp-ghost)),
html:not(#zkl-a):not(#zkl-b):not(#zkl-c) body.zkp-body .zkp-page.zkp-plain :is(.zinkly-btn-primary, button[type=submit]:not(.zkp-ghost)) * { color: var(--btn-txt) !important; }
.zkp-plain a.zinkly-link, .zkp-plain a { color: var(--acc-text); }
.zkp-plain .zinkly-page-header, .zkp-plain h1 { font-weight: 700; letter-spacing: -.035em; }

/* footer: theme switch with an ink knob */
.zkp-foot { margin-top: 22px; }
.zkp-theme2 { background: transparent; box-shadow: none; }
html.light .zkp-theme2 { background: transparent; box-shadow: none; }
.zkp-theme2-knob { background: var(--txt); box-shadow: none; }
.zkp-theme2 button.is-on { color: var(--ink); }
.zkp-theme2 button.is-on svg { transform: none; }
.zkp-theme2 button:focus-visible { outline-color: var(--acc); }
/* footer links: plain text, no chips or icons */
.zkp-foot nav { gap: 4px 18px !important; }
.zkp-foot nav a { padding: 2px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--faint) !important; font-weight: 500 !important; }
.zkp-foot nav a:hover { color: var(--txt) !important; }
.zkp-foot nav a svg { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .zkl-pill, .zkl-rule, .zkp-story > *, .zkp-dock-wrap { animation: none !important; }
    .zkl-pill video { transition: none; }
}
