/* Fusion Login 2.0: Aetos ERP sign-in. Scoped to .o_fl_page; linked directly by the layout, not bundled. */
.o_fl_html,
.o_fl_html body {
    min-height: 100%;
    background: #05070d;
}

.o_fl_page {
    --o-fl-ink: #05070d;
    --o-fl-panel: #0a0f1a;
    --o-fl-field: #070b14;
    --o-fl-text: #f2fbff;
    --o-fl-muted: #9db1c6;
    --o-fl-faint: #6f8399;
    --o-fl-line: rgba(242, 251, 255, 0.08);
    --o-fl-line-strong: rgba(242, 251, 255, 0.16);
    --o-fl-cyan: #35c4e8;
    --o-fl-cyan-hover: #5fd3f0;
    --o-fl-on-cyan: #03131c;
    --o-fl-ease: cubic-bezier(0.16, 1, 0.3, 1);

    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(400px, 1fr);
    gap: 16px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    background: var(--o-fl-ink);
    color: var(--o-fl-text);
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--o-fl-cyan);
    color-scheme: dark;
}

.o_fl_page ::selection {
    background: rgba(53, 196, 232, 0.32);
    color: #ffffff;
}

.o_fl_page a {
    color: var(--o-fl-cyan);
    text-underline-offset: 3px;
}

.o_fl_page :focus-visible {
    outline: 2px solid var(--o-fl-cyan);
    outline-offset: 3px;
}

/* Brand panel: the shader frames it, the content sits inside its quiet centre. */
.o_fl_brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 560px;
    border-radius: 24px;
    background: var(--o-fl-ink);
}

.o_fl_brand_canvas {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
}

.o_fl_brand::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 30% 55%, rgba(5, 7, 13, 0.9) 0%, rgba(5, 7, 13, 0.72) 45%, rgba(5, 7, 13, 0.2) 100%);
    content: "";
}

.o_fl_brand_inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    /* The shader draws its glowing frame about 14% in from the panel's top and bottom edges: keep every word
       inside that frame, never on its line. */
    padding: max(48px, calc((100vh - 32px) * 0.18)) clamp(40px, 6.5vw, 104px);
    padding-block: max(48px, calc((100dvh - 32px) * 0.18));
}

.o_fl_logo {
    display: block;
    width: clamp(150px, 13vw, 200px);
    height: auto;
}

.o_fl_story {
    max-width: 34rem;
}

.o_fl_title {
    margin: 0 0 14px;
    color: var(--o-fl-text);
    font-family: inherit;
    font-size: clamp(32px, 3.3vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.o_fl_lede {
    max-width: 30rem;
    margin: 0 0 36px;
    color: var(--o-fl-muted);
    font-size: clamp(15px, 1.15vw, 17px);
}

.o_fl_modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.o_fl_modules li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
    padding: 13px 0;
    border-top: 1px solid var(--o-fl-line);
}

.o_fl_modules svg {
    grid-row: span 2;
    align-self: center;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--o-fl-cyan);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.o_fl_module_name {
    color: var(--o-fl-text);
    font-weight: 500;
}

.o_fl_module_note {
    color: var(--o-fl-faint);
    font-size: 13px;
}

/* Sign-in column. */
.o_fl_signin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 32px;
    border-radius: 24px;
    background: var(--o-fl-panel);
    box-shadow: inset 0 0 0 1px var(--o-fl-line);
}

.o_fl_signin_inner {
    width: 100%;
    max-width: 380px;
}

.o_fl_heading {
    margin: 0 0 8px;
    color: var(--o-fl-text);
    font-family: inherit;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.o_fl_hint {
    margin: 0 0 28px;
    color: var(--o-fl-muted);
}

.o_fl_mail_btn {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--o-fl-cyan);
    box-shadow: 0 12px 28px -14px rgba(53, 196, 232, 0.7);
    color: var(--o-fl-on-cyan) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 160ms var(--o-fl-ease), transform 160ms var(--o-fl-ease), box-shadow 160ms var(--o-fl-ease);
}

.o_fl_mail_btn span {
    flex: 1 1 auto;
}

.o_fl_mail_btn svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.o_fl_mail_arrow {
    transition: transform 200ms var(--o-fl-ease);
}

.o_fl_mail_btn:hover {
    background: var(--o-fl-cyan-hover);
    box-shadow: 0 16px 32px -14px rgba(53, 196, 232, 0.85);
}

.o_fl_mail_btn:hover .o_fl_mail_arrow {
    transform: translateX(3px);
}

.o_fl_mail_btn:active {
    transform: scale(0.985);
}

.o_fl_divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--o-fl-faint);
    font-size: 13px;
}

.o_fl_divider::before,
.o_fl_divider::after {
    flex: 1 1 auto;
    height: 1px;
    background: var(--o-fl-line);
    content: "";
}

.o_fl_pw_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--o-fl-line-strong);
    color: var(--o-fl-text) !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 160ms var(--o-fl-ease), box-shadow 160ms var(--o-fl-ease);
}

.o_fl_pw_toggle:hover {
    background: rgba(242, 251, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(242, 251, 255, 0.26);
}

/* Folded password form: opens in place (JS) or open from the server (?password=1, an error, no mail provider). */
.o_fl_form {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 360ms var(--o-fl-ease);
}

.o_fl_form_clip {
    min-height: 0;
    overflow: hidden;
}

.o_fl_pw .o_fl_form {
    grid-template-rows: 1fr;
}

.o_fl_pw .o_fl_pw_toggle {
    display: none;
}

/* Odoo's own form inside: never touch .oe_login_form display (reCAPTCHA reveals it). */
.o_fl_page .oe_login_form {
    max-width: none;
    margin: 0;
    padding: 2px 2px 4px;
}

html body .o_fl_page .o_login_auth,
html body .o_fl_page .oe_login_form .o_fusion_mail_signin,
html body .o_fl_page .oe_login_form .o_fusion_mail_password {
    display: none !important;
}

html body .o_fl_page.o_fl_pw .oe_login_form .field-login,
html body .o_fl_page.o_fl_pw .oe_login_form .o_caps_lock_warning,
html body .o_fl_page.o_fl_pw .oe_login_form .field-password {
    display: block !important;
}

html body .o_fl_page.o_fl_pw .oe_login_form .oe_login_buttons > button[type="submit"] {
    display: flex !important;
}

.o_fl_page .oe_login_form .mb-3,
.o_fl_page .oe_login_form .field-login,
.o_fl_page .oe_login_form .o_caps_lock_warning {
    margin-bottom: 16px !important;
}

.o_fl_page .oe_login_form label,
.o_fl_page .oe_login_form .form-label {
    margin-bottom: 6px;
    color: var(--o-fl-muted);
    font-size: 13px;
    font-weight: 500;
}

.o_fl_page .oe_login_form .form-label .btn-link,
.o_fl_page .oe_login_form .form-label a {
    padding: 0;
    border: 0;
    color: var(--o-fl-cyan);
    font-size: 13px;
    text-decoration: none;
}

.o_fl_page .oe_login_form .form-control {
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--o-fl-field);
    box-shadow: inset 0 0 0 1px var(--o-fl-line-strong);
    color: var(--o-fl-text);
    font-size: 15px;
    transition: box-shadow 160ms var(--o-fl-ease);
}

.o_fl_page .oe_login_form .form-control::placeholder {
    color: var(--o-fl-faint);
}

.o_fl_page .oe_login_form .form-control:focus {
    outline: none;
    background: var(--o-fl-field);
    box-shadow: inset 0 0 0 1px var(--o-fl-cyan), 0 0 0 4px rgba(53, 196, 232, 0.16);
    color: var(--o-fl-text);
}

.o_fl_page .oe_login_form .form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--o-fl-text);
    box-shadow: inset 0 0 0 1px var(--o-fl-line-strong), inset 0 0 0 40px var(--o-fl-field);
}

.o_fl_page .oe_login_form .input-group {
    flex-wrap: nowrap;
}

.o_fl_page .oe_login_form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.o_fl_page .oe_login_form .o_show_password {
    width: 48px;
    border: 0 !important;
    border-radius: 0 12px 12px 0;
    background: var(--o-fl-field);
    box-shadow: inset -1px 0 0 var(--o-fl-line-strong), inset 0 1px 0 var(--o-fl-line-strong), inset 0 -1px 0 var(--o-fl-line-strong);
    color: var(--o-fl-muted);
}

.o_fl_page .oe_login_form .o_show_password:hover {
    color: var(--o-fl-text);
}

.o_fl_page .oe_login_form .oe_login_buttons {
    padding-top: 6px !important;
}

.o_fl_page .oe_login_form .oe_login_buttons > button[type="submit"] {
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(53, 196, 232, 0.12);
    box-shadow: inset 0 0 0 1px rgba(53, 196, 232, 0.4);
    color: var(--o-fl-cyan);
    font-weight: 600;
}

.o_fl_page .oe_login_form .oe_login_buttons > button[type="submit"]:hover {
    background: rgba(53, 196, 232, 0.2);
}

.o_fl_page .oe_login_form .alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
}

.o_fl_page .oe_login_form .alert-danger {
    background: rgba(240, 98, 98, 0.12);
    box-shadow: inset 0 0 0 1px rgba(240, 98, 98, 0.35);
    color: #ffb4b4;
}

.o_fl_page .oe_login_form .alert-success {
    background: rgba(53, 196, 232, 0.1);
    box-shadow: inset 0 0 0 1px rgba(53, 196, 232, 0.3);
    color: var(--o-fl-text);
}

.o_fl_page .oe_login_form .text-muted,
.o_fl_page .oe_login_form .small {
    color: var(--o-fl-faint) !important;
}

.o_fl_support {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    color: var(--o-fl-faint);
    font-size: 13px;
}

.o_fl_support a {
    color: var(--o-fl-muted);
    text-decoration: none;
}

.o_fl_support a:hover {
    color: var(--o-fl-text);
}

/* reCAPTCHA badge: keep it clear of the sign-in content. */
.o_fl_html .grecaptcha-badge {
    bottom: 24px !important;
}

/* One authored moment: the panel settles, its modules light in turn, the sign-in rises. */
@media (prefers-reduced-motion: no-preference) {
    .o_fl_brand {
        animation: o_fl_settle 900ms var(--o-fl-ease) both;
    }

    .o_fl_logo,
    .o_fl_title,
    .o_fl_lede {
        animation: o_fl_rise 700ms var(--o-fl-ease) both;
    }

    .o_fl_title {
        animation-delay: 120ms;
    }

    .o_fl_lede {
        animation-delay: 200ms;
    }

    .o_fl_modules li {
        animation: o_fl_light 640ms var(--o-fl-ease) both;
        animation-delay: calc(360ms + var(--o-fl-i) * 80ms);
    }

    .o_fl_signin_inner {
        animation: o_fl_rise 700ms var(--o-fl-ease) 160ms both;
    }
}

@keyframes o_fl_settle {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
}

@keyframes o_fl_rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes o_fl_light {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(8px);
    }
}

/* Short desktop windows: tighten the panel rather than cutting anything. */
@media (min-width: 961px) and (max-height: 760px) {
    .o_fl_brand_inner {
        gap: 20px;
    }

    .o_fl_logo {
        width: 140px;
    }

    .o_fl_title {
        font-size: 34px;
    }

    .o_fl_lede {
        margin-bottom: 20px;
    }

    .o_fl_modules li {
        padding: 9px 0;
    }

    .o_fl_module_note {
        display: none;
    }
}

/* Tablet and phone: the panel becomes a header, sign-in follows. */
@media (max-width: 960px) {
    .o_fl_page {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        gap: 12px;
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .o_fl_brand {
        min-height: 0;
        border-radius: 20px;
    }

    .o_fl_brand::after {
        background: rgba(5, 7, 13, 0.8);
    }

    .o_fl_brand_inner {
        justify-content: flex-start;
        gap: 28px;
        padding: 40px 36px 44px;
        padding-block: 40px 44px;
    }

    .o_fl_modules {
        display: none;
    }

    .o_fl_lede {
        margin-bottom: 0;
    }

    .o_fl_signin {
        align-items: flex-start;
        padding: 36px 24px 28px;
        border-radius: 20px;
    }

    .o_fl_signin_inner {
        max-width: 440px;
    }
}

@media (min-width: 601px) and (max-width: 960px) {
    .o_fl_signin {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .o_fl_brand_inner {
        padding: 32px 28px 36px;
        padding-block: 32px 36px;
    }

    .o_fl_logo {
        width: 140px;
    }

    .o_fl_title {
        font-size: 28px;
    }

    .o_fl_lede {
        font-size: 15px;
    }

    .o_fl_heading {
        font-size: 26px;
    }

    .o_fl_page .oe_login_form .form-control {
        font-size: 16px;
    }
}
