/* Login — layout espelhado do CRM (src/pages/Login.tsx) */

.hg-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: hsl(20 6% 10%);
    font-family: var(--hg-font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
}

.hg-login-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hg-login-dots {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    animation: hg-login-drift 6s ease-in-out infinite;
}

.hg-login-dots--a {
    top: 3rem;
    left: 3rem;
}

.hg-login-dots--b {
    top: 4rem;
    left: 5rem;
    animation-duration: 8s;
    animation-delay: 1s;
}

.hg-login-dots span {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: var(--hg-brand, hsl(30 100% 51%));
    opacity: 0.6;
}

.hg-login-dots--b span {
    width: 0.5rem;
    height: 0.5rem;
    opacity: 0.4;
}

.hg-login-circle {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.2);
}

.hg-login-circle--bl {
    width: 20rem;
    height: 20rem;
    bottom: -6rem;
    left: -6rem;
    animation: hg-login-float1 12s ease-in-out infinite;
}

.hg-login-circle--tr {
    width: 18rem;
    height: 18rem;
    top: -5rem;
    right: -5rem;
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.15);
    animation: hg-login-float2 15s ease-in-out infinite;
}

.hg-login-circle--mid {
    width: 13rem;
    height: 13rem;
    top: 33%;
    right: 33%;
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.1);
    animation: hg-login-float3 10s ease-in-out infinite 2s;
}

.hg-login-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(48px);
    animation: hg-login-pulse-glow 5s ease-in-out infinite;
}

.hg-login-orb--1 {
    width: 8rem;
    height: 8rem;
    bottom: 25%;
    left: 25%;
    background: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.1);
}

.hg-login-orb--2 {
    width: 6rem;
    height: 6rem;
    top: 25%;
    right: 33%;
    background: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.08);
    animation-duration: 7s;
    animation-delay: 2s;
}

.hg-login-vline {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.2), transparent);
    animation: hg-login-line-move 8s linear infinite;
}

.hg-login-spark {
    position: absolute;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    animation: hg-login-drift 5s ease-in-out infinite;
}

.hg-login-main {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 64rem;
    padding: 1.5rem;
    flex: 1;
    justify-content: center;
}

.hg-login-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 1rem 1.5rem 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
    .hg-login-main {
        flex-direction: row;
        gap: 4rem;
    }
}

@media (min-width: 1280px) {
    .hg-login-main {
        gap: 5rem;
    }
}

.hg-login-branding {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hg-login-branding {
        text-align: left;
    }
}

.hg-login-logo {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2.5rem;
    display: block;
}

@media (min-width: 1024px) {
    .hg-login-logo {
        margin-left: 0;
        margin-right: 0;
    }
}

.hg-login-headline {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.hg-login-headline-row {
    display: block;
    white-space: nowrap;
}

.hg-login-brand-word {
    color: var(--hg-brand, hsl(30 100% 51%));
}

.hg-login-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
}

@media (min-width: 1024px) {
    .hg-login-tagline {
        font-size: 1.125rem;
    }
}

.hg-login-card {
    width: 100%;
    max-width: 24rem;
    flex-shrink: 0;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.hg-login-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.hg-login-card-desc {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.hg-login-required {
    color: var(--hg-brand, hsl(30 100% 51%));
}

/* --- Form (override Filament wrappers → visual do CRM) --- */

.hg-login-form {
    color: #fff;
}

.hg-login .fi-simple-main,
.hg-login .fi-simple-main-ctn,
.hg-login .fi-simple-layout,
.hg-login .fi-simple-page,
.hg-login .fi-simple-page-content {
    all: unset;
    display: block;
    width: 100%;
}

.hg-login-form .fi-sc-form,
.hg-login-form form,
.hg-login-form .fi-sc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hg-login-form .fi-fo-field-wrp {
    gap: 0.5rem;
}

.hg-login-form .fi-fo-field-wrp-label,
.hg-login-form .fi-fo-field-wrp-label label,
.hg-login-form .fi-fo-field-wrp-label .fi-fo-field-wrp-label-text,
.hg-login-form label span,
.hg-login-form .fi-fieldset-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Wrapper Filament (= caixa do input no CRM) */
.hg-login-form .fi-input-wrp {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    ring: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.hg-login-form .fi-input-wrp:focus-within {
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.5) !important;
    box-shadow: 0 0 0 2px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.35) !important;
    --tw-ring-color: transparent !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

.hg-login-form .fi-input-wrp.fi-invalid {
    border-color: #fb7185 !important;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.25) !important;
}

.hg-login-form .fi-input-wrp-content-ctn,
.hg-login-form .fi-input-wrp > * {
    background: transparent !important;
}

.hg-login-form input.fi-input,
.hg-login-form .fi-input-wrp input,
.hg-login-form input[type="email"],
.hg-login-form input[type="password"],
.hg-login-form input[type="text"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0.5rem 0.75rem !important;
    width: 100% !important;
}

.hg-login-form input.fi-input.fi-revealable,
.hg-login-form .fi-input-wrp input.fi-revealable {
    padding-inline-end: 0 !important;
}

.hg-login-form .fi-input::placeholder,
.hg-login-form input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3) !important;
}

/* Chrome autofill (evita fundo branco nos campos) */
.hg-login-form input:-webkit-autofill,
.hg-login-form input:-webkit-autofill:hover,
.hg-login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.07) inset !important;
}

.hg-login-form .fi-input:focus,
.hg-login-form input:focus {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

/* Ícone revelar senha */
.hg-login-form .fi-input-wrp-suffix,
.hg-login-form .fi-input-wrp-prefix {
    background: transparent !important;
    border-color: transparent !important;
    color: rgba(255, 255, 255, 0.45) !important;
}

.hg-login-form .fi-input-wrp-suffix .fi-icon,
.hg-login-form .fi-input-wrp-suffix svg,
.hg-login-form .fi-input-wrp-actions button,
.hg-login-form .fi-input-wrp-actions .fi-icon,
.hg-login-form .fi-icon-btn,
.hg-login-form .fi-ac-icon-btn-action {
    color: rgba(255, 255, 255, 0.45) !important;
}

.hg-login-form .fi-input-wrp-suffix button:hover,
.hg-login-form .fi-input-wrp-actions button:hover,
.hg-login-form .fi-icon-btn:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
}

.hg-login-form .fi-btn,
.hg-login-form button[type="submit"],
.hg-login-form .fi-ac-btn-action {
    width: 100% !important;
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    background: var(--hg-brand, hsl(30 100% 51%)) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

.hg-login-form .fi-btn:hover,
.hg-login-form button[type="submit"]:hover,
.hg-login-form .fi-ac-btn-action:hover {
    background: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.9) !important;
}

.hg-login-form .fi-fo-field-wrp-error-message,
.hg-login-form .fi-fo-field-wrp-error,
.hg-login-form .fi-fo-field-wrp-error-list li {
    color: #fda4af !important;
}

.hg-login-form .fi-fo-checkbox,
.hg-login-form .fi-checkbox {
    margin-top: 0.25rem;
}

.hg-login-form .fi-fo-checkbox .fi-fo-field-wrp-label,
.hg-login-form .fi-checkbox label,
.hg-login-form .fi-fo-checkbox label {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.hg-login-form .fi-fo-field-wrp-helper-text,
.hg-login-form .fi-fo-checkbox .fi-fo-field-wrp-helper-text {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.75rem !important;
    margin-top: 0.35rem !important;
}

.hg-login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fda4af;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.hg-login-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.hg-login-success svg {
    flex-shrink: 0;
    color: #34d399;
}

.hg-login-forgot-wrap {
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
}

.hg-login-form a.hg-login-forgot {
    display: inline-block;
    color: var(--hg-brand, hsl(30 100% 51%));
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hg-login-form a.hg-login-forgot:hover {
    color: #fff;
    background: transparent !important;
}

.hg-login-nav {
    margin: 1.25rem 0 0;
    text-align: center;
}

.hg-login-nav a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.hg-login-nav a:hover {
    color: var(--hg-brand, hsl(30 100% 51%));
}

.hg-login-mfa-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.hg-login-mfa-field label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 500;
}

.hg-login-form input.hg-login-mfa-input {
    letter-spacing: 0.4em;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    padding-left: 0.75rem;
}

.hg-login-mfa-error {
    color: #fda4af;
    font-size: 0.8125rem;
    margin: 0;
}

.hg-login-form button.hg-login-submit {
    width: 100%;
    min-height: 2.75rem;
    height: 2.75rem;
    background: var(--hg-brand, hsl(30 100% 51%));
    border: 0;
    color: #fff;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
}

.hg-login-form button.hg-login-submit:hover {
    background: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.9);
}

.hg-login-form button.hg-login-text-btn {
    display: inline;
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0;
    background: transparent !important;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.hg-login-form button.hg-login-text-btn:hover {
    color: var(--hg-brand, hsl(30 100% 51%));
    background: transparent !important;
}

/* --- Transition overlay (HUD / boot sequence) --- */

.hg-login-transition {
    --hg-fx: hsl(var(--hg-hsl-brand, 30 100% 51%));
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 42%, hsl(22 12% 16%) 0%, transparent 55%),
        radial-gradient(ellipse at center, hsl(20 10% 9%) 0%, hsl(20 8% 4%) 100%);
    animation: hg-login-overlay-in 0.45s ease-out forwards;
}

.hg-login-fx-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    transform: perspective(600px) rotateX(58deg) translateY(-8%);
    transform-origin: center 70%;
    animation: hg-login-grid-drift 14s linear infinite;
    opacity: 0.7;
}

.hg-login-fx-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

.hg-login-fx-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 7rem;
    background: linear-gradient(
        to bottom,
        transparent,
        hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.12),
        transparent
    );
    animation: hg-login-beam-sweep 4.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
    pointer-events: none;
}

.hg-login-fx-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.hg-login-fx-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hg-login-fx-particles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 9999px;
    background: var(--hg-brand, hsl(30 100% 51%));
    box-shadow: 0 0 8px var(--hg-brand, hsl(30 100% 51%));
    opacity: 0.55;
    animation: hg-login-particle-drift ease-in-out infinite;
}

.hg-login-fx-particles i:nth-child(odd) {
    width: 2px;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.hg-login-hud-frame {
    position: absolute;
    width: 4.5rem;
    height: 4.5rem;
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.55);
    border-style: solid;
    pointer-events: none;
    animation: hg-login-hud-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hg-login-hud-frame--tl {
    top: 1.25rem;
    left: 1.25rem;
    border-width: 2px 0 0 2px;
}

.hg-login-hud-frame--tr {
    top: 1.25rem;
    right: 1.25rem;
    border-width: 2px 2px 0 0;
    animation-delay: 0.08s;
}

.hg-login-hud-frame--bl {
    bottom: 1.25rem;
    left: 1.25rem;
    border-width: 0 0 2px 2px;
    animation-delay: 0.12s;
}

.hg-login-hud-frame--br {
    bottom: 1.25rem;
    right: 1.25rem;
    border-width: 0 2px 2px 0;
    animation-delay: 0.16s;
}

.hg-login-hud-meta {
    position: absolute;
    z-index: 4;
    margin: 0;
    color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.55);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    animation: hg-login-meta-in 0.6s ease 0.3s both;
}

.hg-login-hud-meta--tl { top: 1.55rem; left: 6.2rem; }
.hg-login-hud-meta--tr { top: 1.55rem; right: 6.2rem; }
.hg-login-hud-meta--bl { bottom: 1.55rem; left: 6.2rem; }
.hg-login-hud-meta--br { bottom: 1.55rem; right: 6.2rem; }

.hg-login-fx-stream {
    position: absolute;
    top: 12%;
    bottom: 12%;
    width: 1px;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.45;
}

.hg-login-fx-stream::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: 160%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 10px,
        hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.9) 10px 12px,
        transparent 12px 22px,
        rgba(255, 255, 255, 0.35) 22px 23px
    );
    animation: hg-login-stream 4.5s linear infinite;
}

.hg-login-fx-stream--left { left: 8%; }
.hg-login-fx-stream--right {
    right: 8%;
}

.hg-login-fx-stream--right::before {
    animation-duration: 5.4s;
    animation-direction: reverse;
}

.hg-login-transition-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.hg-login-transition-inner.is-out {
    animation: hg-login-content-fade-up 0.45s ease-in forwards;
}

.hg-login-core {
    position: relative;
    width: 11.5rem;
    height: 11.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hg-login-core.is-in {
    animation: hg-login-core-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-login-orbit {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.28);
    pointer-events: none;
}

.hg-login-orbit--outer {
    inset: -6px;
    border-top-color: var(--hg-brand, hsl(30 100% 51%));
    border-right-color: transparent;
    animation: hg-login-spin 8s linear infinite;
}

.hg-login-orbit--mid {
    inset: 10px;
    border-style: dashed;
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.35);
    animation: hg-login-spin 12s linear infinite reverse;
}

.hg-login-orbit--inner {
    inset: 26px;
    border-width: 1px;
    border-bottom-color: #fff;
    border-left-color: transparent;
    animation: hg-login-spin 5s linear infinite;
}

.hg-login-orbit--outer::after,
.hg-login-orbit--inner::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: var(--hg-brand, hsl(30 100% 51%));
    box-shadow: 0 0 10px var(--hg-brand, hsl(30 100% 51%));
}

.hg-login-orbit--outer::after {
    top: -4px;
    left: 50%;
    margin-left: -3px;
}

.hg-login-orbit--inner::before {
    bottom: -3px;
    left: 18%;
    width: 5px;
    height: 5px;
    background: #fff;
}

.hg-login-hex {
    position: absolute;
    width: 7.25rem;
    height: 7.25rem;
    color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.7);
    filter: drop-shadow(0 0 8px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.45));
    animation: hg-login-hex-pulse 3.2s ease-in-out infinite;
}

.hg-login-core-glow {
    position: absolute;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    background: radial-gradient(circle, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.35) 0%, transparent 70%);
    animation: hg-login-glow-pulse 2.4s ease-in-out infinite;
}

.hg-login-transition-logo {
    position: relative;
    z-index: 2;
    height: 2.35rem;
    width: auto;
    opacity: 0;
}

.hg-login-transition-logo.is-in {
    animation: hg-login-logo-hologram 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-login-core-scan {
    position: absolute;
    z-index: 3;
    left: 22%;
    right: 22%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, var(--hg-brand, hsl(30 100% 51%)), transparent);
    opacity: 0;
    box-shadow: 0 0 12px var(--hg-brand, hsl(30 100% 51%));
}

.hg-login-core.is-in .hg-login-core-scan {
    animation: hg-login-core-scan 1.6s ease-in-out 0.2s 2 both;
}

.hg-login-core.is-lock .hg-login-orbit--outer {
    animation: hg-login-spin 2.2s linear infinite, hg-login-orbit-lock 0.6s ease-out forwards;
}

.hg-login-core.is-lock .hg-login-hex {
    color: var(--hg-brand, hsl(30 100% 51%));
    animation: hg-login-hex-lock 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-login-transition-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.4rem;
    color: var(--hg-brand, hsl(30 100% 51%));
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0;
}

.hg-login-transition-status.is-in {
    animation: hg-login-text-reveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-login-status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--hg-brand, hsl(30 100% 51%));
    box-shadow: 0 0 10px var(--hg-brand, hsl(30 100% 51%));
    animation: hg-login-status-blink 1.1s ease-in-out infinite;
}

.hg-login-transition-label {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
}

.hg-login-transition-label.is-in {
    animation: hg-login-text-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.hg-login-transition-name {
    margin: 0 0 1.75rem;
    font-size: clamp(1.5rem, 4vw, 1.95rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    opacity: 0;
    text-shadow: 0 0 24px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.35);
}

.hg-login-transition-name.is-in {
    animation: hg-login-name-reveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards;
}

.hg-login-transition-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(18rem, 82vw);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hg-login-transition-progress.is-on {
    opacity: 1;
    transform: translateY(0);
}

.hg-login-protocol {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    width: 100%;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.hg-login-protocol li {
    opacity: 0;
    padding: 0.15rem 0;
    transform: translateX(-8px);
}

.hg-login-protocol li::before {
    content: "▸ ";
    color: var(--hg-brand, hsl(30 100% 51%));
}

.hg-login-transition-progress.is-on .hg-login-protocol li {
    animation: hg-login-proto-in 0.4s ease forwards;
}

.hg-login-transition-progress.is-on .hg-login-protocol li:nth-child(1) { animation-delay: 0.1s; }
.hg-login-transition-progress.is-on .hg-login-protocol li:nth-child(2) { animation-delay: 0.5s; }
.hg-login-transition-progress.is-on .hg-login-protocol li:nth-child(3) { animation-delay: 1s; color: rgba(255, 255, 255, 0.72); }

.hg-login-segbar {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 8px;
}

.hg-login-segbar i {
    flex: 1;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform: scaleY(0.4);
    opacity: 0.4;
}

.hg-login-transition-progress.is-on .hg-login-segbar i {
    animation: hg-login-seg-fill 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-login-transition-hint {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hg-login-transition-check {
    margin-top: 1.35rem;
    color: var(--hg-brand, hsl(30 100% 51%));
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    filter: drop-shadow(0 0 16px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.55));
}

.hg-login-transition-check.is-on {
    animation: hg-login-check-lock 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.hg-login-check-hex {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
}

.hg-login-check-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.hg-login-transition-check.is-on .hg-login-check-hex {
    animation: hg-login-stroke 0.5s ease forwards;
}

.hg-login-transition-check.is-on .hg-login-check-mark {
    animation: hg-login-stroke 0.4s ease 0.22s forwards;
}

.hg-login-transition-wipe {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
}

.hg-login-transition-wipe.is-on {
    opacity: 1;
    background:
        radial-gradient(circle at 50% 48%, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.35), transparent 42%),
        var(--hg-background, #fff);
    animation: hg-login-hex-wipe 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hg-login-wipe-flash {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.55) 50%,
        transparent 70%
    );
    animation: hg-login-wipe-flash 0.55s ease-out forwards;
}

/* Esconde chrome padrão Filament na rota de login */
body:has(.hg-login) .fi-simple-layout-header {
    display: none !important;
}

body:has(.hg-login) .fi-body,
body:has(.hg-login) {
    background: hsl(20 6% 10%) !important;
}

@keyframes hg-login-float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15px, -20px) scale(1.03); }
    50% { transform: translate(-10px, -35px) scale(0.97); }
    75% { transform: translate(20px, -10px) scale(1.02); }
}
@keyframes hg-login-float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(5deg); }
    66% { transform: translate(10px, -20px) rotate(-3deg); }
}
@keyframes hg-login-float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, 20px); }
}
@keyframes hg-login-pulse-glow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}
@keyframes hg-login-drift {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-8px) translateX(5px); }
    75% { transform: translateY(8px) translateX(-5px); }
}
@keyframes hg-login-line-move {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes hg-login-overlay-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes hg-login-grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 0 48px; }
}
@keyframes hg-login-beam-sweep {
    0% { top: -10%; opacity: 0; }
    12% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
@keyframes hg-login-particle-drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.25; }
    50% { transform: translate(8px, -14px); opacity: 0.9; }
}
@keyframes hg-login-hud-in {
    0% { opacity: 0; transform: scale(0.86); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes hg-login-meta-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes hg-login-stream {
    0% { transform: translateY(-20%); }
    100% { transform: translateY(20%); }
}
@keyframes hg-login-core-in {
    0% { opacity: 0; transform: scale(0.72); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes hg-login-spin {
    to { transform: rotate(360deg); }
}
@keyframes hg-login-hex-pulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.04); opacity: 1; }
}
@keyframes hg-login-logo-hologram {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
        filter: blur(8px) brightness(2.4) saturate(0.2);
        clip-path: inset(100% 0 0 0);
    }
    45% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: blur(0) brightness(1.6) saturate(0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1) saturate(1);
        clip-path: inset(0 0 0 0);
    }
}
@keyframes hg-login-core-scan {
    0% { top: 22%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 0.7; }
    100% { top: 74%; opacity: 0; }
}
@keyframes hg-login-orbit-lock {
    0% { box-shadow: 0 0 0 0 hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.5); }
    100% { box-shadow: 0 0 0 14px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0); }
}
@keyframes hg-login-hex-lock {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
@keyframes hg-login-text-reveal {
    0% { opacity: 0; transform: translateY(14px); letter-spacing: 0.42em; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0.18em; }
}
@keyframes hg-login-name-reveal {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes hg-login-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
@keyframes hg-login-proto-in {
    0% { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes hg-login-seg-fill {
    0% { transform: scaleY(0.4); opacity: 0.35; background: rgba(255, 255, 255, 0.08); }
    100% {
        transform: scaleY(1);
        opacity: 1;
        background: linear-gradient(180deg, #fff 0%, var(--hg-brand, hsl(30 100% 51%)) 100%);
        box-shadow: 0 0 8px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.55);
    }
}
@keyframes hg-login-check-lock {
    0% { opacity: 0; transform: scale(0.5) rotate(-12deg); }
    70% { opacity: 1; transform: scale(1.08) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes hg-login-stroke {
    to { stroke-dashoffset: 0; }
}
@keyframes hg-login-content-fade-up {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-24px) scale(0.96); }
}
@keyframes hg-login-hex-wipe {
    0% {
        clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
    }
    100% {
        clip-path: polygon(50% -90%, 145% 25%, 145% 75%, 50% 190%, -45% 75%, -45% 25%);
    }
}
@keyframes hg-login-wipe-flash {
    0% { opacity: 0.9; transform: translateX(-40%); }
    100% { opacity: 0; transform: translateX(40%); }
}
@keyframes hg-login-glow-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.18); }
}

@media (max-width: 640px) {
    .hg-login-headline-row {
        white-space: normal;
    }

    .hg-login-card {
        padding: 1.5rem;
    }

    .hg-login-hud-meta,
    .hg-login-fx-stream {
        display: none;
    }

    .hg-login-hud-frame {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hg-login-core {
        width: 9.5rem;
        height: 9.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-login-transition *,
    .hg-login-transition *::before,
    .hg-login-transition *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hg-login-core,
    .hg-login-transition-logo,
    .hg-login-transition-status,
    .hg-login-transition-label,
    .hg-login-transition-name,
    .hg-login-transition-progress,
    .hg-login-transition-check {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}
