/*
 * Ticlite © 2026 
 * Platform + tenant /login only. No other CSS dependencies.
 */
:root {
    --auth-bg: #f0f0f1;
    --auth-card: #fff;
    --auth-border: #c3c4c7;
    --auth-text: #1d2327;
    --auth-muted: #646970;
    --auth-accent: #2271b1;
    --auth-accent-hover: #135e96;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    color: #1f2937;
}

.button {
    display: inline-block;
    background: var(--auth-accent);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
}
.button:hover { background: var(--auth-accent-hover); }
.error { color: #b32d2e; margin: 0 0 1rem; }

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Split auth / login ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.auth-layout {
    min-height: 100vh;
    margin: 0;
    color: #111;
    background: #fff;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 1.25fr) minmax(420px, 1fr);
}

.auth-split__panel {
    --auth-blue: #0b4fcf;
    --auth-blue-deep: #083ea8;
    position: relative;
    background:
        linear-gradient(160deg, #165fe0 0%, var(--auth-blue) 42%, var(--auth-blue-deep) 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    min-height: 100vh;
}

.auth-split__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-split__ring {
    position: absolute;
    top: -18%;
    right: -22%;
    width: min(92vw, 820px);
    aspect-ratio: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 28%;
    box-sizing: border-box;
}

.auth-split__ring--2 {
    top: -8%;
    right: -12%;
    width: min(78vw, 680px);
    opacity: .95;
}

.auth-split__ring--3 {
    top: 2%;
    right: -2%;
    width: min(64vw, 540px);
    opacity: .9;
}

.auth-split__ring--4 {
    top: 12%;
    right: 8%;
    width: min(50vw, 400px);
    opacity: .85;
}

.auth-split__ring--5 {
    top: 22%;
    right: 18%;
    width: min(36vw, 260px);
    opacity: .8;
}

.auth-split__grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.auth-split__panel-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4.5vw, 4.5rem) 2rem;
    max-width: 40rem;
    box-sizing: border-box;
}

.auth-split__panel-main {
    margin-top: clamp(2rem, 12vh, 7rem);
}

.auth-split__mark {
    display: block;
    max-height: 48px;
    width: auto;
    margin: 0 0 2.75rem;
    filter: brightness(0) invert(1);
}

.auth-split__mark--text {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 2.75rem;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    filter: none;
}

.auth-split__hello {
    margin: 0 0 1.15rem;
    font-size: clamp(2.4rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.auth-split__lede {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 26rem;
}

.auth-split__copy {
    margin: 0;
    padding-top: 2.5rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.62);
}

.auth-split__form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5.5rem 3rem 3.5rem;
    background: #fff;
    box-sizing: border-box;
    box-shadow: -18px 0 40px rgba(8, 30, 80, 0.12);
    overflow-x: clip;
}

.auth-split__form-inner {
    width: min(100%, 360px);
    max-width: 360px;
    margin: 0 auto;
    box-sizing: border-box;
}

.auth-split__home {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.auth-split__home:hover,
.auth-split__home:focus-visible {
    opacity: 0.88;
}

.auth-split__brand-row {
    --auth-blue: #0b4fcf;
    --auth-blue-deep: #083ea8;
    margin: 0 0 2.25rem;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    background:
        linear-gradient(155deg, #165fe0 0%, var(--auth-blue) 48%, var(--auth-blue-deep) 100%);
    box-shadow:
        0 10px 28px rgba(8, 40, 120, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
}

.auth-split__brand-row .auth-split__home {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.auth-split__brand-logo {
    max-height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
}

.auth-split__brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-split__title {
    margin: 0 0 .55rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-split__sub {
    margin: 0 0 2rem;
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.5;
}

.auth-split__sub a,
.auth-split__footer-link a,
.auth-text-btn {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.auth-split__fields {
    display: grid;
    gap: 1.35rem;
}

.auth-underline {
    display: block;
}

.auth-underline__label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: .4rem;
}

.auth-underline input[type="email"],
.auth-underline input[type="password"],
.auth-underline input[type="text"] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: .65rem .75rem;
    font-size: 1rem;
    color: #111;
    background: transparent;
    box-sizing: border-box;
}

.auth-underline input::placeholder {
    color: #c4c4c4;
}

.auth-underline input:focus {
    outline: none;
    border-bottom-color: #111;
}

.auth-underline__secret {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d1d5db;
}

.auth-underline__secret input {
    border-bottom: 0 !important;
    flex: 1;
}

.auth-underline__secret .secret-input__toggle {
    flex-shrink: 0;
}

.auth-split__primary {
    width: 100%;
    margin-top: .5rem;
    background: #111;
    border-color: #111;
    border-radius: 999px;
    padding: .95rem 1.25rem;
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.auth-split__primary:hover,
.auth-split__primary:focus-visible {
    background: #0b4fcf;
    border-color: #0b4fcf;
    color: #fff;
}

.auth-split__footer-link {
    margin: 1.75rem 0 0;
    text-align: center;
    color: #6b7280;
    font-size: .9rem;
}

.auth-split__fields .g-recaptcha { margin: .25rem 0; }

.auth-recaptcha {
    display: grid;
    gap: .45rem;
    width: fit-content;
    max-width: 100%;
    padding: .35rem;
    border: 2px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease;
}

.auth-recaptcha.is-invalid {
    border-color: #dc2626;
    outline: 2px solid #dc2626;
    outline-offset: 4px;
    background: rgba(220, 38, 38, 0.06);
}

.auth-recaptcha__hint {
    margin: 0;
    color: #dc2626;
    font-size: .85rem;
    font-weight: 600;
}

.notice-success { color: #0f766e; }

.auth-destinations {
    display: grid;
    gap: .75rem;
}

.auth-destination {
    margin: 0;
}

.auth-destination__btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: .95rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.auth-destination__btn:hover,
.auth-destination__btn:focus-visible {
    border-color: #111;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    outline: none;
}

.auth-destination__label {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-destination__hint {
    font-size: .84rem;
    color: #6b7280;
    font-weight: 500;
}

.account-picker {
    position: relative;
    width: 100%;
}

.account-picker__panel {
    box-sizing: border-box;
    margin-top: .5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 17, 24, .08);
    overflow: hidden;
}

.account-picker__panel[hidden] {
    display: none !important;
}

.account-picker__search {
    display: block;
    padding: .65rem .7rem .35rem;
    border-bottom: 1px solid #eef0f2;
}

.account-picker__search input {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: .5rem .7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: .92rem;
    background: #fff;
    color: #111;
}

.account-picker__search input:focus {
    outline: none;
    border-color: #111;
}

.account-picker__list {
    max-height: min(46vh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: .35rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Legacy Edge */
}
.account-picker__list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome / Safari / Edge */
}

.account-picker__option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: .65rem .75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-picker__option:hover,
.account-picker__option:focus-visible {
    background: #f3f4f6;
    outline: none;
}

.account-picker__empty {
    margin: 0;
    padding: .85rem .9rem 1rem;
    color: #6b7280;
    font-size: .88rem;
}


.auth-split__mobile-footer {
    display: none;
}

@media (max-width: 900px) {
    .auth-split {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        min-height: 100vh;
        min-height: 100dvh;
        background:
            radial-gradient(120% 80% at 50% -10%, rgba(22, 95, 224, 0.14), transparent 55%),
            #f4f6fb;
    }
    .auth-split__panel {
        display: none !important;
    }
    .auth-split__form {
        box-shadow: none;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-height: 0;
        padding: 1.75rem 1.15rem;
        width: 100%;
        background: transparent;
    }
    .auth-split__form-inner {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 1.6rem 1.35rem 1.75rem;
        background: #fff;
        border: 1px solid rgba(11, 79, 207, 0.14);
        border-radius: 18px;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.8) inset,
            0 12px 40px rgba(8, 40, 120, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.4);
        box-sizing: border-box;
        position: relative;
    }
    .auth-split__form-inner::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 19px;
        padding: 1px;
        background: linear-gradient(145deg, rgba(22, 95, 224, 0.55), rgba(11, 79, 207, 0.08) 40%, rgba(8, 62, 168, 0.35));
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }
    .auth-split__brand-row {
        justify-content: center;
        text-align: center;
        margin-bottom: 1.75rem;
        padding: 1rem 1.15rem;
    }
    .auth-split__brand-logo {
        margin: 0 auto;
        max-height: 44px;
    }
    .auth-split__title,
    .auth-split__sub {
        text-align: center;
    }
    .auth-split__mobile-footer {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        padding: 1.1rem 1.25rem;
        background: linear-gradient(160deg, #165fe0 0%, #0b4fcf 42%, #083ea8 100%);
        color: rgba(255, 255, 255, 0.88);
        text-align: center;
    }
    .auth-split__mobile-footer p {
        margin: 0;
        font-size: .82rem;
        line-height: 1.4;
    }
}

/* Password reveal */
.secret-input {
    position: relative;
    display: block;
    max-width: 420px;
    margin-top: .3rem;
}

.secret-input input {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-right: 2.4rem;
}

.secret-input__toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--auth-muted, #646970);
    cursor: pointer;
}

.secret-input__toggle:hover,
.secret-input__toggle:focus-visible {
    color: var(--auth-text, #1d2327);
    background: rgba(0, 0, 0, .05);
    outline: none;
}

.secret-input__icon {
    display: inline-flex;
    line-height: 0;
}

.secret-input__icon[hidden] {
    display: none !important;
}

.muted { color: var(--auth-muted); font-size: 13px; margin: 0 0 .75rem; }

.notice {
    padding: .75rem 1rem;
    margin: 0 0 1rem;
    border-left: 4px solid #72aee6;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-left-width: 4px;
    font-size: 13px;
}

.notice-success { border-left-color: #00a32a; }
.notice-error { border-left-color: #d63638; color: #b32d2e; }
.notice-info { border-left-color: #72aee6; }

/* Auth: local-dev webhook helper */
.auth-dev-webhook {
    margin: 1rem 0 0;
    padding: .85rem .9rem;
    border: 1px dashed #d97706;
    border-radius: .5rem;
    background: #fffbeb;
}
.auth-dev-webhook.is-done {
    border-style: solid;
    border-color: #16a34a;
    background: #f0fdf4;
}
.auth-dev-webhook__title {
    margin: 0 0 .5rem;
    font-weight: 700;
    color: #92400e;
}
.auth-dev-webhook.is-done .auth-dev-webhook__title { color: #166534; }
.auth-dev-webhook__body {
    margin: 0 0 .75rem;
    font-size: .92rem;
    line-height: 1.4;
    color: #78350f;
}
.auth-dev-webhook.is-done .auth-dev-webhook__body { color: #14532d; }
.auth-dev-webhook__status {
    margin: 0;
    font-weight: 700;
    color: #166534;
}
.auth-dev-webhook code {
    font-size: .85em;
    background: rgba(0, 0, 0, .06);
    padding: .1rem .3rem;
    border-radius: .25rem;
}