/* BizeeOS — sign-in & password reset. Split screen: dark brand panel on the left (workspace name, three
   plain points, no product screenshots), the form on the right. Below 1024px the panel becomes a slim
   top band with the logo. Colours follow the marketing site (website/assets/css/bizeeos.css). */

.bz-auth {
    --bz-ink: #0E0C24;
    --bz-accent: #5B3DF5;
    --bz-accent-soft: #8C74FF;
    --bz-surface: #FFFFFF;
    --bz-page: #FFFFFF;
    --bz-line: #CFCBE3;
    --bz-muted: #5A5775;

    display: grid;
    grid-template-columns: minmax(380px, 44%) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bz-page);
    color: var(--bz-ink);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.dark .bz-auth {
    --bz-ink: #F3F1FD;
    --bz-surface: #151233;
    --bz-page: #100D2A;
    --bz-line: #2E2A57;
    --bz-muted: #B4B0D0;
}

/* ---------- Brand panel ---------- */

.bz-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 56px;
    overflow: hidden;
    background: #0E0C24;
    color: #FFFFFF;
}

.bz-auth-brand::before,
.bz-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.bz-auth-brand::before {
    top: -30%;
    right: -35%;
    width: 90%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(91, 61, 245, 0.5) 0%, rgba(91, 61, 245, 0.22) 45%, rgba(91, 61, 245, 0.06) 75%, rgba(91, 61, 245, 0) 100%);
}

.bz-auth-brand::after {
    bottom: -35%;
    left: -30%;
    width: 85%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(34, 184, 240, 0.26) 0%, rgba(34, 184, 240, 0.1) 50%, rgba(34, 184, 240, 0) 100%);
}

.bz-auth-brand > * {
    position: relative;
    z-index: 1;
}

.bz-auth-brand-logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.bz-auth-brand-logo img {
    height: 36px;
    width: auto;
}

.bz-auth-brand-chip {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 10px;
    background: #FFFFFF;
}

.bz-auth-brand-chip img {
    height: 28px;
}

.bz-auth-brand-copy {
    max-width: 460px;
}

.bz-auth-brand-eyebrow {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bz-accent-soft);
}

.bz-auth-brand-title {
    margin: 0;
    font-family: "DM Sans", "Inter", sans-serif;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.bz-auth-brand-points {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.bz-auth-brand-points li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.78);
}

.bz-auth-brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: var(--bz-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.bz-auth-brand-foot {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Form side ---------- */

.bz-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 56px 24px;
    outline: none;
}

.bz-auth-page {
    width: 100%;
    max-width: 420px;
}

.bz-auth-header {
    margin-bottom: 32px;
}

.bz-auth-heading {
    margin: 0;
    font-family: "DM Sans", "Inter", sans-serif;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--bz-ink);
}

.bz-auth-subheading {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 26px;
    color: var(--bz-muted);
}

.bz-auth-subheading a,
.bz-auth-subheading .fi-link {
    color: var(--bz-accent);
    font-weight: 600;
}

.bz-auth-box {
    background: transparent;
}

.bz-auth-help {
    width: 100%;
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--bz-muted);
}

/* ---------- Tablets and phones: slim band on top ---------- */

@media (max-width: 1023px) {
    .bz-auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .bz-auth-brand {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 20px 16px;
    }

    .bz-auth-brand-copy,
    .bz-auth-brand-foot {
        display: none;
    }

    .bz-auth-brand-logo img {
        height: 30px;
    }

    .bz-auth-main {
        justify-content: flex-start;
        padding: 40px 16px;
    }

    .bz-auth-heading {
        font-size: 34px;
    }
}

/* ---------- Filament form controls, themed ---------- */

.bz-auth-form .fi-sc-form {
    gap: 24px;
}

.bz-auth-form .fi-fo-field-label-content {
    font-size: 16px;
    font-weight: 700;
    color: var(--bz-ink);
}

.bz-auth-form .fi-input-wrp {
    min-height: 60px;
    border-radius: 10px;
    background: transparent;
    --tw-ring-color: var(--bz-line);
    --tw-ring-shadow: 0 0 0 1px var(--bz-line);
    box-shadow: var(--tw-ring-shadow);
    transition: box-shadow 0.2s ease;
}

.bz-auth-form .fi-input-wrp:focus-within {
    --tw-ring-shadow: 0 0 0 2px var(--bz-accent);
    box-shadow: var(--tw-ring-shadow);
}

.bz-auth-form .fi-input {
    padding: 15px 24px;
    font-size: 16px;
    color: var(--bz-ink);
}

.bz-auth-form .fi-link {
    font-weight: 600;
    color: var(--bz-accent);
}

.bz-auth-form .fi-checkbox-input {
    border-radius: 4px;
}

/* Theme pill button: ink, turns violet on hover */
.bz-auth-form .fi-btn.fi-color-primary,
.bz-auth-form .fi-btn {
    min-height: 60px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    background-color: var(--bz-ink);
    box-shadow: none;
    transition: background-color 0.4s ease;
}

.dark .bz-auth-form .fi-btn {
    color: #0E0C24;
    background-color: #FFFFFF;
}

.bz-auth-form .fi-btn:hover,
.bz-auth-form .fi-btn:focus-visible,
.dark .bz-auth-form .fi-btn:hover {
    color: #FFFFFF;
    background-color: var(--bz-accent);
}

@media (prefers-reduced-motion: reduce) {
    .bz-auth-form .fi-btn,
    .bz-auth-form .fi-input-wrp {
        transition: none;
    }
}
