/* Gestor 44 — authentication shell shared by admin and account. */
body.g44-auth-page {
    --g44-auth-accent: #ef4b23;
    --g44-auth-accent-strong: #d93f1a;
    --g44-auth-accent-soft: #fff0e8;
    --g44-auth-graphite: #1c191b;
    --g44-auth-surface: #fffdf9;
    --g44-auth-ink: #282326;
    --g44-auth-muted: #71665f;
    --g44-auth-border: #ded4cc;
    --g44-auth-danger: #c9362b;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    color: var(--g44-auth-ink);
    background:
        radial-gradient(circle at 14% 12%, rgba(239, 75, 35, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 88%, rgba(239, 75, 35, 0.08), transparent 24rem),
        var(--g44-auth-graphite) !important;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.g44-auth-page::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body.g44-auth-page .bravo_topbar,
body.g44-auth-page header.topmenu,
body.g44-auth-page footer,
body.g44-auth-page .action_footer,
body.g44-auth-page .whatsapp-float,
body.g44-auth-page .mobile-contact-bar {
    display: none !important;
}

body.g44-auth-page #app {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
}

body.g44-auth-page #app,
body.g44-auth-page .g44-auth {
    background: transparent !important;
    background-color: transparent !important;
}

.g44-auth,
.g44-auth *,
.g44-auth *::before,
.g44-auth *::after {
    box-sizing: border-box;
}

.g44-auth {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 20px;
}

.g44-auth__shell {
    width: 100%;
    max-width: 460px;
}

.g44-auth__card {
    position: relative;
    overflow: hidden;
    width: 100%;
    color: var(--g44-auth-ink);
    background: var(--g44-auth-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    animation: g44-auth-rise 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.g44-auth__card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--g44-auth-accent);
}

.g44-auth__card-body {
    padding: 36px 38px 32px;
}

.g44-auth__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.g44-auth__brand-logo {
    display: block;
    width: auto;
    max-width: 92px;
    height: 40px;
    object-fit: contain;
}

.g44-auth__context {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--g44-auth-accent-strong);
    background: var(--g44-auth-accent-soft);
    border: 1px solid #f6c7b0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.g44-auth__header {
    margin-bottom: 26px;
}

.g44-auth__title {
    margin: 0;
    color: var(--g44-auth-ink);
    font-size: clamp(1.75rem, 5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.g44-auth__description {
    margin: 9px 0 0;
    color: var(--g44-auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.g44-auth .login-form,
.g44-auth__form {
    margin: 0;
}

.g44-auth .form-group,
.g44-auth__field {
    margin: 0 0 17px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.g44-auth .form-group label,
.g44-auth__field label {
    display: block;
    margin: 0 0 7px;
    color: var(--g44-auth-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.g44-auth .form-control {
    display: block !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    color: var(--g44-auth-ink) !important;
    background: #ffffff !important;
    border: 1px solid var(--g44-auth-border) !important;
    border-radius: 11px !important;
    outline: 0;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.g44-auth .form-control::placeholder {
    color: #9a908a;
    opacity: 1;
}

.g44-auth .form-control:focus {
    background: var(--g44-auth-surface) !important;
    border-color: var(--g44-auth-accent) !important;
    box-shadow: 0 0 0 3px rgba(239, 75, 35, 0.2) !important;
}

.g44-auth .form-control:focus-visible {
    outline: 0;
}

.g44-auth .form-control.is-invalid {
    border-color: var(--g44-auth-danger) !important;
}

.g44-auth__error,
.g44-auth .invalid-feedback {
    display: block;
    margin-top: 6px;
    color: var(--g44-auth-danger);
    font-size: 12px;
    font-weight: 600;
}

.g44-auth__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 22px;
}

.g44-auth__remember {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: var(--g44-auth-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    cursor: pointer;
}

.g44-auth__remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--g44-auth-accent);
}

.g44-auth__link,
.g44-auth .lost-pass-link {
    color: var(--g44-auth-accent-strong) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.g44-auth__link:hover,
.g44-auth .lost-pass-link:hover {
    color: var(--g44-auth-accent) !important;
    text-decoration: underline;
}

.g44-auth__submit,
.g44-auth .login-button {
    display: inline-flex !important;
    float: none !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
    background: var(--g44-auth-accent) !important;
    border: 1px solid var(--g44-auth-accent) !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 24px rgba(239, 75, 35, 0.22) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.g44-auth__submit:hover,
.g44-auth .login-button:hover {
    color: #ffffff !important;
    background: var(--g44-auth-accent-strong) !important;
    border-color: var(--g44-auth-accent-strong) !important;
    box-shadow: 0 12px 28px rgba(217, 63, 26, 0.25) !important;
    transform: translateY(-1px);
}

.g44-auth .login-button .signin {
    color: #ffffff !important;
}

.g44-auth__secondary {
    margin: 20px 0 0;
    color: var(--g44-auth-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.g44-auth__extensions {
    margin-top: 16px;
}

.g44-auth .login-options {
    margin-top: 16px;
}

.g44-auth .login-options .btn,
.g44-auth .login-options a {
    min-height: 44px;
    border-radius: 10px;
}

body.g44-auth-page .g44-auth__footer {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

body.g44-auth-page .g44-auth__footer strong {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

.g44-auth .alert,
.g44-auth .account-auth__alert,
.g44-auth .account-auth__message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.g44-auth .alert-danger,
.g44-auth .account-auth__alert.alert-danger {
    color: #8d211a;
    background: #fff0ee;
    border: 1px solid #f0c2bd;
}

.g44-auth .alert-success,
.g44-auth .account-auth__alert.alert-success {
    color: #226747;
    background: #edf8f2;
    border: 1px solid #b9dfcc;
}

body.g44-auth-page .cookie-consent {
    color: rgba(255, 255, 255, 0.82) !important;
    background: var(--g44-auth-graphite-soft, #2a2527) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28) !important;
}

body.g44-auth-page .cookie-consent__message {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.g44-auth-page .cookie-consent__message a {
    color: #ffffff !important;
}

body.g44-auth-page .cookie-consent__agree {
    min-height: 42px !important;
    color: #ffffff !important;
    background: var(--g44-auth-accent) !important;
    border: 1px solid var(--g44-auth-accent) !important;
    border-radius: 9px !important;
    font-weight: 800 !important;
}

body.g44-auth-page .cookie-consent__agree:hover,
body.g44-auth-page .cookie-consent__agree:focus {
    background: var(--g44-auth-accent-strong) !important;
    border-color: var(--g44-auth-accent-strong) !important;
}

.g44-auth :focus-visible {
    outline: 3px solid rgba(239, 75, 35, 0.32);
    outline-offset: 3px;
}

@keyframes g44-auth-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .g44-auth {
        align-items: flex-start;
        padding: 24px 18px;
    }

    .g44-auth__card {
        border-radius: 18px;
    }

    .g44-auth__card-body {
        padding: 29px 22px 25px;
    }

    .g44-auth__brand {
        margin-bottom: 25px;
    }

    .g44-auth__brand-logo {
        max-width: 82px;
        height: 36px;
    }

    .g44-auth__context {
        min-height: 26px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .g44-auth__options {
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .g44-auth {
        padding-right: 18px;
        padding-left: 18px;
    }

    .g44-auth__card-body {
        padding-right: 20px;
        padding-left: 20px;
    }

    .g44-auth__brand {
        gap: 8px;
    }

    .g44-auth__options {
        gap: 8px;
    }

    .g44-auth__remember,
    .g44-auth__link,
    .g44-auth .lost-pass-link {
        font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .g44-auth *,
    .g44-auth *::before,
    .g44-auth *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
