/* BizeeOS — sign-in & password reset. Mirrors the marketing site theme
   (website/assets/css/bizeeos.css): ink + violet, lavender surfaces,
   DM Sans headings, Inter body, pill buttons, 60px fields. */

.bz-auth {
    --bz-ink: #0E0C24;
    --bz-accent: #5B3DF5;
    --bz-accent-deep: #4B2FE0;
    --bz-surface: #FFFFFF;
    --bz-page: #F7F6FC;
    --bz-soft: #F3F1FD;
    --bz-line: #CFCBE3;
    --bz-muted: #4A4766;
    --bz-shadow: 0 4px 60px 0 rgba(14, 12, 36, 0.1);

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    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: #0E0C24;
    --bz-soft: #1A1640;
    --bz-line: #2E2A57;
    --bz-muted: #B4B0D0;
    --bz-shadow: 0 4px 60px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- Decorative theme shapes (soft gradient blobs) ---------- */

.bz-auth::before,
.bz-auth::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(20px);
}

.bz-auth::before {
    top: -18vmax;
    right: -16vmax;
    width: 52vmax;
    height: 52vmax;
    background: radial-gradient(circle at 40% 45%, rgba(91, 61, 245, 0.42) 0%, rgba(140, 116, 255, 0.22) 38%, rgba(140, 116, 255, 0) 68%);
}

.bz-auth::after {
    bottom: -22vmax;
    left: -18vmax;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle at 55% 45%, rgba(34, 184, 240, 0.26) 0%, rgba(91, 61, 245, 0.16) 40%, rgba(91, 61, 245, 0) 68%);
}

.dark .bz-auth::before,
.dark .bz-auth::after {
    opacity: 0.55;
}

/* ---------- Top bar (theme "extra header") ---------- */

.bz-auth-top {
    position: relative;
    z-index: 1;
    padding: 24px;
    border-radius: 0 0 50px 50px;
    background: var(--bz-soft);
    text-align: center;
}

@media (max-width: 991px) {
    .bz-auth-top {
        border-radius: 0 0 30px 30px;
    }
}

.bz-auth-top-logo {
    display: inline-flex;
    align-items: center;
}

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

.bz-auth-logo-dark,
.dark .bz-auth-logo-light {
    display: none;
}

.dark .bz-auth-logo-dark {
    display: block;
}

/* ---------- Main ---------- */

.bz-auth-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 16px;
    outline: none;
}

@media (max-width: 767px) {
    .bz-auth-main {
        padding: 48px 16px;
    }
}

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

.bz-auth-header {
    text-align: center;
    margin-bottom: 48px;
}

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

@media (max-width: 991px) {
    .bz-auth-heading {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .bz-auth-heading {
        font-size: 42px;
        letter-spacing: -1px;
    }
}

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

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

/* Theme "account box" */
.bz-auth-box {
    border-radius: 10px;
    padding: 40px;
    background: var(--bz-surface);
    box-shadow: var(--bz-shadow);
}

@media (max-width: 991px) {
    .bz-auth-box {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .bz-auth-box {
        padding: 24px 20px;
    }
}

.bz-auth-foot {
    position: relative;
    z-index: 1;
    padding: 24px 16px 32px;
    text-align: center;
    font-size: 14px;
    color: var(--bz-muted);
}

/* ---------- 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;
    }
}
