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

/* Conteúdo escondido até a intro terminar.
   Failsafe: se o JS da intro falhar, o formulário aparece após 4s. */
.hg-login:not(.hg-login--ready) .hg-login-main,
.hg-login:not(.hg-login--ready) .hg-login-footer,
.hg-login:not(.hg-login--ready) .hg-login-decor {
    opacity: 0;
    animation: hg-login-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 4s both;
}

.hg-login.hg-login--ready .hg-login-main,
.hg-login.hg-login--ready .hg-login-footer,
.hg-login.hg-login--ready .hg-login-decor {
    animation: hg-login-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hg-login.hg-login--ready .hg-login-branding {
    animation: hg-login-reveal-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hg-login.hg-login--ready .hg-login-card {
    animation: hg-login-reveal-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

@keyframes hg-login-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hg-login-reveal-left {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hg-login-reveal-up {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-login:not(.hg-login--ready) .hg-login-main,
    .hg-login:not(.hg-login--ready) .hg-login-footer,
    .hg-login:not(.hg-login--ready) .hg-login-decor,
    .hg-login.hg-login--ready .hg-login-main,
    .hg-login.hg-login--ready .hg-login-footer,
    .hg-login.hg-login--ready .hg-login-decor,
    .hg-login.hg-login--ready .hg-login-branding,
    .hg-login.hg-login--ready .hg-login-card {
        opacity: 1;
        animation: none !important;
        transform: none !important;
    }
}

.hg-login-env-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #1c1917;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    border-bottom: 1px solid rgba(120, 53, 15, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hg-login-env-banner svg {
    flex-shrink: 0;
    color: #78350f;
}

.hg-login-env-banner strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .hg-login-env-banner {
        font-size: 0.78rem;
        padding: 0.6rem 0.85rem;
        align-items: flex-start;
    }
}

.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: #fff1f2;
    border: 1px solid rgba(254, 205, 211, 0.6);
    color: #be123c;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

.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;
}

/* --- Transition overlay --- */

.hg-login-transition {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, hsl(20 8% 14%) 0%, hsl(20 6% 6%) 70%);
    animation: hg-login-overlay-in 0.5s ease-out forwards;
}

.hg-login-transition-glow {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease, transform 1.5s ease;
    transform: scale(0.3);
}

.hg-login-transition-glow.is-on {
    opacity: 1;
    transform: scale(1);
}

.hg-login-transition-glow--main {
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.18) 0%, transparent 70%);
}

.hg-login-transition-glow--main.is-on {
    animation: hg-login-glow-pulse 3s ease-in-out infinite;
}

.hg-login-transition-glow--secondary {
    width: 18rem;
    height: 18rem;
    top: 30%;
    left: 25%;
    background: radial-gradient(circle, hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.1) 0%, transparent 70%);
    transition-delay: 0.3s;
}

.hg-login-transition-ring {
    position: absolute;
    border-radius: 9999px;
    border-style: solid;
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.4);
}

.hg-login-transition-ring--1 {
    animation: hg-login-ring-expand 1s ease-out forwards;
}

.hg-login-transition-ring--2 {
    border-color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.2);
    animation: hg-login-ring-expand-2 1.2s ease-out 0.15s forwards;
}

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

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

.hg-login-transition-logo {
    height: 3.5rem;
    width: auto;
    margin-bottom: 2.5rem;
    opacity: 0;
}

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

.hg-login-transition-label {
    margin: 0 0 0.75rem;
    color: hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    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) forwards;
}

.hg-login-transition-name {
    margin: 0 0 2rem;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    opacity: 0;
}

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

.hg-login-transition-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hg-login-transition-progress.is-on {
    opacity: 1;
}

.hg-login-transition-bar {
    width: 16rem;
    max-width: 80vw;
    height: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hg-login-transition-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--hg-brand), hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.85), var(--hg-brand));
    background-size: 200% 100%;
}

.hg-login-transition-progress.is-on .hg-login-transition-bar-fill {
    animation: hg-login-bar-fill 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards, hg-login-shimmer 1.5s linear infinite;
}

.hg-login-transition-dots {
    display: flex;
    gap: 0.375rem;
    margin-top: 1rem;
}

.hg-login-transition-dots span {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    animation: hg-login-dot-cascade 1.2s ease-in-out infinite;
}

.hg-login-transition-dots span:nth-child(2) { animation-delay: 0.2s; }
.hg-login-transition-dots span:nth-child(3) { animation-delay: 0.4s; }

.hg-login-transition-hint {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.hg-login-transition-check {
    margin-top: 1.5rem;
    color: var(--hg-brand, hsl(30 100% 51%));
    filter: drop-shadow(0 0 20px hsl(var(--hg-hsl-brand, 30 100% 51%) / 0.5));
    animation: hg-login-check-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hg-login-transition-wipe {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--hg-background, #fff);
    animation: hg-login-final-wipe 0.6s cubic-bezier(0.4, 0, 0.2, 1) 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; backdrop-filter: blur(0); }
    100% { opacity: 1; backdrop-filter: blur(20px); }
}
@keyframes hg-login-logo-float-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.8); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes hg-login-text-reveal {
    0% { opacity: 0; transform: translateY(16px); letter-spacing: 0.3em; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0.2em; }
}
@keyframes hg-login-name-reveal {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes hg-login-bar-fill {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}
@keyframes hg-login-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes hg-login-ring-expand {
    0% { width: 0; height: 0; opacity: 0.6; border-width: 2px; }
    100% { width: 200px; height: 200px; opacity: 0; border-width: 0; }
}
@keyframes hg-login-ring-expand-2 {
    0% { width: 0; height: 0; opacity: 0.4; border-width: 2px; }
    100% { width: 300px; height: 300px; opacity: 0; border-width: 0; }
}
@keyframes hg-login-check-bounce {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(5deg); }
    70% { transform: scale(0.95) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes hg-login-content-fade-up {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}
@keyframes hg-login-final-wipe {
    0% { clip-path: circle(0% at 50% 50%); }
    100% { clip-path: circle(100% at 50% 50%); }
}
@keyframes hg-login-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
@keyframes hg-login-dot-cascade {
    0%, 20% { opacity: 0.3; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0.3; }
}

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

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