/* Kairalmas login and signup — matches the 2026 marketing site */

html body.auth-body {
    --kauth-navy: #071b52;
    --kauth-navy-2: #04123a;
    --kauth-blue: #0037ff;
    --kauth-blue-dark: #0028cc;
    --kauth-ink: #071b52;
    --kauth-muted: #667085;
    --kauth-line: #e2e9f7;
    --kauth-soft: #f6f8fd;
    --kauth-green: #12b76a;
    background:
        radial-gradient(980px 560px at 6% -10%, rgba(0, 55, 255, .11), transparent 62%),
        radial-gradient(760px 520px at 102% 10%, rgba(0, 87, 255, .08), transparent 58%),
        #f6f8fd !important;
    color: var(--kauth-navy) !important;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    overflow-x: hidden;
}
html body.auth-body::before,
html body.auth-body::after { display: none !important; }

html body.auth-body .auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 0 24px 18px !important;
    background: transparent !important;
}

/* Header */
html body.auth-body .hk-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100% !important;
    max-width: 1260px !important;
    height: 86px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: relative;
    z-index: 3;
}
html body.auth-body .auth-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0 !important;
    color: var(--kauth-navy) !important;
}
html body.auth-body .hk-auth-header .ka-logo[role="img"] {
    width: 152px !important;
    height: 40.3px !important;
}
html body.auth-body .hk-auth-header .ka-logo-art {
    background: transparent url('/assets/kairalmas-lockup-v4.png?v=20261114-brand') left center/contain no-repeat !important;
    filter: none !important;
}
html body.auth-body .hk-auth-header nav {
    display: flex;
    align-items: center;
    gap: 4px !important;
    margin: 0;
    font-size: 12px !important;
    font-weight: 600;
}
html body.auth-body .hk-auth-header nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #4b5563 !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;
}
html body.auth-body .hk-auth-header nav a:hover {
    color: var(--kauth-blue) !important;
    background: #eef4ff;
}
html body.auth-body .hk-auth-header nav a:last-child {
    padding: 9px 15px;
    border-color: #dfe6f5;
    background: #fff;
    color: var(--kauth-navy) !important;
    box-shadow: 0 1px 2px rgba(7, 27, 82, .04);
}
html body.auth-body .hk-auth-header nav a:last-child:hover {
    border-color: var(--kauth-blue);
    background: #f8faff;
    color: var(--kauth-blue) !important;
}

/* Stage */
html body.auth-body .auth-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 10px 0 26px !important;
    background: transparent !important;
}
html body.auth-body .auth-stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    width: min(100%, 1060px) !important;
    min-height: 624px;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #e2e9ff !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 34px 90px rgba(7, 27, 82, .14), 0 2px 0 rgba(255, 255, 255, .7) inset !important;
    color: var(--kauth-navy) !important;
}

/* Form */
html body.auth-body .auth-card {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--kauth-navy) !important;
}
html body.auth-body .auth-card .hk-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--kauth-blue) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    line-height: 1.2;
    text-transform: uppercase;
}
html body.auth-body .auth-card .hk-label::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--kauth-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 255, .12);
}
html body.auth-body .auth-card h1 {
    margin: 13px 0 9px !important;
    color: var(--kauth-navy) !important;
    font-size: clamp(32px, 3.5vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -.05em !important;
}
html body.auth-body .auth-subtitle {
    max-width: 36ch;
    margin: 0 0 24px !important;
    color: var(--kauth-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
}
html body.auth-body .hk-pill {
    margin: 14px 0 0;
    padding: 9px 12px;
    border: 1px solid #dbe5ff;
    border-radius: 9px;
    background: #f4f8ff;
    color: #24478f;
    font-size: 11.5px;
    line-height: 1.5;
}

/* Google */
html body.auth-body .hk-google-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid #dfe6f5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--kauth-navy) !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(7, 27, 82, .04) !important;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
html body.auth-body .hk-google-button:hover {
    border-color: var(--kauth-blue) !important;
    background: #f8faff !important;
    box-shadow: 0 8px 20px rgba(0, 55, 255, .08) !important;
}
html body.auth-body .hk-google-button > span:last-child {
    margin-left: auto;
    color: #9aa6bb;
    font-weight: 800;
}
html body.auth-body .hk-google-mark {
    flex: 0 0 auto;
    font-size: 20px !important;
    line-height: 1;
}

/* Divider */
html body.auth-body .ka-auth-divider {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px !important;
    color: #98a2b3 !important;
    font-size: 10.5px !important;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: center !important;
}
html body.auth-body .ka-auth-divider::before,
html body.auth-body .ka-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9eef8;
}

/* Email form */
html body.auth-body .ka-email-form {
    display: grid !important;
    gap: 7px !important;
    margin-top: 0 !important;
}
html body.auth-body .ka-email-form label {
    margin-top: 4px;
    color: var(--kauth-navy) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.4;
}
html body.auth-body .ka-email-form label:first-child { margin-top: 0; }
html body.auth-body .ka-email-form input:not([type="checkbox"]) {
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 15px !important;
    border: 1px solid #dfe6f5 !important;
    border-radius: 12px !important;
    background: #fbfcff !important;
    color: var(--kauth-navy) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.2;
    outline: none;
    box-shadow: none !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
html body.auth-body .ka-email-form input:not([type="checkbox"])::placeholder { color: #a4aec0; }
html body.auth-body .ka-email-form input:not([type="checkbox"]):focus {
    border-color: var(--kauth-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 55, 255, .12) !important;
}
html body.auth-body .ka-email-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: var(--kauth-blue);
    vertical-align: -2px;
}
html body.auth-body .ka-email-form label:has(input[type="checkbox"]) {
    color: #7b8497 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.55;
    margin-top: 12px;
}
html body.auth-body .ka-email-form label a { color: var(--kauth-blue) !important; font-weight: 700; }
html body.auth-body .ka-email-form input[name="code"] {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: .34em !important;
    text-align: center !important;
}
html body.auth-body .ka-email-form .btn {
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 6px !important;
    padding: 0 18px !important;
    border: 1px solid var(--kauth-blue) !important;
    border-radius: 12px !important;
    background: var(--kauth-blue) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 55, 255, .22) !important;
    transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
html body.auth-body .ka-email-form .btn:hover {
    background: var(--kauth-blue-dark) !important;
    border-color: var(--kauth-blue-dark) !important;
    box-shadow: 0 16px 32px rgba(0, 55, 255, .28) !important;
}
html body.auth-body .ka-email-form .btn:active { transform: translateY(1px); }
html body.auth-body .ka-email-small {
    margin-top: 3px;
    color: #8b95a7 !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
}
html body.auth-body .ka-email-cancel {
    width: 100%;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--kauth-blue);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Switch link */
html body.auth-body .hk-auth-switch {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef2f9;
    color: var(--kauth-muted) !important;
    font-size: 12px !important;
    line-height: 1.6;
    text-align: left;
}
html body.auth-body .hk-auth-switch a {
    color: var(--kauth-blue) !important;
    font-weight: 800;
}

/* Brand panel */
html body.auth-body .auth-aside {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 46px 38px !important;
    border: 0 !important;
    background:
        radial-gradient(120% 90% at 88% 0%, rgba(91, 140, 255, .55), transparent 56%),
        radial-gradient(95% 80% at 0% 100%, rgba(0, 55, 255, .48), transparent 62%),
        linear-gradient(150deg, #04123a 0%, #071b52 48%, #0a2f86 100%) !important;
    color: #fff !important;
}
html body.auth-body .auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .28;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 65%, transparent 100%);
}
html body.auth-body .auth-aside::after {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -190px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    pointer-events: none;
}
html body.auth-body .auth-aside > * { position: relative; z-index: 1; }
html body.auth-body .auth-aside-brand img {
    display: block;
    width: auto;
    height: 28px;
}
html body.auth-body .auth-aside-top { margin-top: 34px; }
html body.auth-body .hk-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9fc0ff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    line-height: 1.2;
    text-transform: uppercase;
}
html body.auth-body .hk-auth-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--kauth-green);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .16);
}
html body.auth-body .auth-aside h2 {
    margin: 15px 0 14px !important;
    color: #fff !important;
    font-size: clamp(34px, 3.3vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -.05em !important;
}
html body.auth-body .auth-aside p {
    max-width: 35ch;
    margin: 0 !important;
    color: rgba(220, 230, 255, .78) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}
html body.auth-body .hk-auth-benefits {
    display: grid;
    gap: 9px;
    margin-top: 26px;
}
html body.auth-body .hk-auth-benefits span {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #eaf1ff !important;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    backdrop-filter: blur(8px);
}
html body.auth-body .hk-auth-benefits i {
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(18, 183, 106, .18);
    color: #5ee0a0;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
}
html body.auth-body .hk-auth-benefits i::before { content: "✓"; }

html body.auth-body .hk-auth-aside-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}
html body.auth-body .auth-aside-price small {
    display: block;
    margin-bottom: 5px;
    color: #9fc0ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}
html body.auth-body .auth-aside-price > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
html body.auth-body .auth-aside-price strong {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
}
html body.auth-body .auth-aside-price span {
    color: rgba(220, 230, 255, .7) !important;
    font-size: 10.5px;
    font-weight: 600;
}
html body.auth-body .auth-aside-price em {
    display: block;
    margin-top: 8px;
    color: rgba(220, 230, 255, .62);
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.5;
}
html body.auth-body .auth-aside-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .18s, border-color .18s;
}
html body.auth-body .auth-aside-link:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .1);
}
html body.auth-body .auth-aside-link span { color: inherit !important; }

/* Footer */
html body.auth-body .auth-foot {
    padding: 16px 0 6px !important;
    color: #7b8497 !important;
    font-size: 11px !important;
    line-height: 1.6;
    text-align: center;
}
html body.auth-body .auth-foot a { color: var(--kauth-blue) !important; font-weight: 700; }

html body.auth-body a:focus-visible,
html body.auth-body button:focus-visible,
html body.auth-body input:focus-visible {
    outline: 2px solid var(--kauth-blue);
    outline-offset: 2px;
}

/* Tablet */
@media (max-width: 1050px) {
    html body.auth-body .auth-stage { width: min(100%, 980px) !important; }
    html body.auth-body .auth-card { padding: 42px 40px !important; }
    html body.auth-body .auth-aside { padding: 36px 38px 34px !important; }
    html body.auth-body .auth-aside h2 { font-size: 36px !important; }
}

/* Stacked layout */
@media (max-width: 900px) {
    html body.auth-body .auth-main { padding: 8px 0 22px !important; }
    html body.auth-body .auth-stage {
        grid-template-columns: 1fr !important;
        width: min(100%, 560px) !important;
        min-height: 0 !important;
        border-radius: 24px !important;
    }
    html body.auth-body .auth-aside {
        order: -1;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px;
        min-height: 0 !important;
        padding: 18px 24px !important;
    }
    html body.auth-body .auth-aside::after { display: none !important; }
    html body.auth-body .auth-aside-brand img { height: 24px; }
    html body.auth-body .auth-aside-top { display: none !important; }
    html body.auth-body .hk-auth-aside-bottom {
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
        border-top: 0 !important;
    }
    html body.auth-body .auth-aside-price small { display: none; }
    html body.auth-body .auth-aside-price > div { gap: 3px; }
    html body.auth-body .auth-aside-price strong { font-size: 17px; letter-spacing: -.03em; }
    html body.auth-body .auth-aside-price span { font-size: 9.5px; }
    html body.auth-body .auth-aside-price em { display: none; }
    html body.auth-body .auth-aside-link { display: none; }
    html body.auth-body .auth-card {
        order: 2;
        padding: 34px 34px 36px !important;
    }
    html body.auth-body .ka-support { display: none !important; }
}

@media (max-width: 600px) {
    html body.auth-body .auth-shell { padding: 0 14px 14px !important; }
    html body.auth-body .hk-auth-header {
        height: 72px !important;
        padding: 0 4px !important;
        gap: 12px;
    }
    html body.auth-body .hk-auth-header .ka-logo[role="img"] {
        width: 136px !important;
        height: 36.1px !important;
    }
    html body.auth-body .hk-auth-header nav { gap: 0 !important; }
    html body.auth-body .hk-auth-header nav a:not(:last-child) { display: none !important; }
    html body.auth-body .hk-auth-header nav a:last-child {
        padding: 8px 12px;
        font-size: 11px;
    }
    html body.auth-body .auth-main { padding: 4px 0 18px !important; }
    html body.auth-body .auth-stage { border-radius: 20px !important; }
    html body.auth-body .auth-aside { padding: 16px 20px !important; }
    html body.auth-body .auth-aside-brand img { height: 22px; }
    html body.auth-body .auth-aside-price strong { font-size: 15px; }
    html body.auth-body .auth-aside-price span { font-size: 9px; }
    html body.auth-body .auth-card { padding: 30px 24px 32px !important; }
    html body.auth-body .auth-card h1 { font-size: 31px !important; }
    html body.auth-body .auth-subtitle { margin-bottom: 21px !important; font-size: 13px !important; }
    html body.auth-body .hk-google-button { min-height: 50px !important; font-size: 12px !important; }
    html body.auth-body .ka-email-form input:not([type="checkbox"]) { min-height: 50px !important; }
    html body.auth-body .ka-email-form .btn { min-height: 50px !important; }
    html body.auth-body .auth-foot { padding-top: 12px !important; }
}

@media (max-width: 380px) {
    html body.auth-body .auth-card { padding: 27px 20px 28px !important; }
    html body.auth-body .auth-card h1 { font-size: 29px !important; }
    html body.auth-body .auth-aside-brand img { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html body.auth-body *,
    html body.auth-body *::before,
    html body.auth-body *::after {
        transition: none !important;
        animation: none !important;
    }
}
