/**
 * Login Premium — Bride Mania PDV
 * Design rico + viewport fixo (sem scroll)
 */

*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

body.lg-page {
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    font-family: 'Quicksand', var(--font-family);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    background: #0b1120;
}

/* ===== BACKGROUND ===== */
.lg-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lg-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, black 15%, transparent 72%);
}

.lg-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: lgGlowDrift 18s ease-in-out infinite alternate;
}

.lg-bg-glow--1 {
    width: 480px;
    height: 480px;
    background: rgba(37, 99, 235, 0.4);
    top: -120px;
    left: -100px;
}

.lg-bg-glow--2 {
    width: 360px;
    height: 360px;
    background: rgba(59, 130, 246, 0.25);
    bottom: -80px;
    right: 8%;
    animation-delay: -6s;
}

.lg-bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes lgGlowDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ===== DESKTOP HERO ===== */
.lg-hero { display: none; }

@media (min-width: 1024px) {
    body.lg-page {
        display: grid;
        grid-template-columns: 1fr 500px;
        height: 100dvh;
        max-height: 100dvh;
    }

    .lg-hero {
        display: flex;
        position: relative;
        z-index: 1;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding: clamp(20px, 3vh, 40px) clamp(28px, 3.5vw, 52px);
        align-items: stretch;
    }

    .lg-hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        max-width: 600px;
        min-height: 0;
        animation: lgSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .lg-bg-grid {
        mask-image: radial-gradient(ellipse 90% 80% at 25% 50%, black 10%, transparent 70%);
    }
}

@keyframes lgSlideRight {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.lg-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
}

.lg-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lg-logo-ring {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.lg-logo-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 17px;
    border: 2px solid rgba(37, 99, 235, 0.35);
    opacity: 0.6;
    animation: lgRingPulse 3s ease-in-out infinite;
}

@keyframes lgRingPulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.04); }
}

.lg-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.lg-logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: #2563eb;
    position: relative;
    z-index: 1;
}

.lg-hero-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
}

.lg-hero-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.lg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.lg-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: lgPulse 2s ease infinite;
}

@keyframes lgPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.lg-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: clamp(10px, 2vh, 28px) 0;
    overflow: hidden;
}

.lg-hero-title {
    font-size: clamp(1.75rem, 3.5vh, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 clamp(10px, 1.8vh, 16px);
    letter-spacing: -0.02em;
}

.lg-hero-title span {
    color: #60a5fa;
    display: inline-block;
}

.lg-hero-lead {
    font-size: clamp(0.875rem, 1.7vh, 1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    max-width: 500px;
    margin: 0 0 clamp(14px, 2.2vh, 22px);
}

.lg-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 12px);
    min-height: 0;
}

.lg-feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(10px, 1.4vh, 14px) clamp(12px, 1.6vw, 16px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lg-feature-list li > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lg-feature-list li:hover {
    transform: translateX(5px);
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.lg-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    align-self: center;
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.lg-feature-icon i {
    display: block;
    line-height: 1;
    font-size: 1em;
    text-align: center;
}

.lg-feature-list strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.lg-feature-list span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}

.lg-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.4vh, 14px);
    flex-shrink: 0;
}

.lg-stat {
    position: relative;
    padding: clamp(12px, 1.6vh, 16px) 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    overflow: hidden;
}

.lg-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0.6;
}

.lg-stat-value {
    display: block;
    font-size: clamp(1.25rem, 2.4vh, 1.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.lg-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== MAIN PANEL ===== */
.lg-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .lg-main {
        background: linear-gradient(180deg, #fafbfc 0%, #ffffff 40%, #f8fafc 100%);
        box-shadow: -28px 0 90px rgba(0, 0, 0, 0.4);
        animation: lgSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .lg-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #2563eb, #60a5fa, #2563eb);
        z-index: 3;
    }
}

@keyframes lgSlideLeft {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== MOBILE APP SHELL ===== */
.lg-mobile-shell {
    display: none;
}

@media (max-width: 1023px) {
    body.lg-page {
        background: #1d4ed8;
    }

    .lg-bg {
        opacity: 0.35;
    }

    .lg-mobile-shell {
        display: block;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 0;
        background: linear-gradient(165deg, #1e40af 0%, #2563eb 45%, #3b82f6 100%);
        overflow: hidden;
    }

    .lg-mobile-shell::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 15% 20%, rgba(255,255,255,0.14) 0%, transparent 45%),
            radial-gradient(circle at 85% 10%, rgba(255,255,255,0.08) 0%, transparent 35%);
        pointer-events: none;
    }

    .lg-mobile-shell::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 28px;
        background: #fff;
        border-radius: 28px 28px 0 0;
    }

    .lg-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 22px 0;
        position: relative;
        z-index: 1;
    }

    .lg-mobile-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 0.6875rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .lg-mobile-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #4ade80;
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
        animation: lgPulse 2s ease infinite;
    }

    .lg-mobile-time {
        font-size: 0.8125rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        color: #fff;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .lg-mobile-hero {
        position: relative;
        z-index: 1;
        text-align: center;
        padding: 18px 24px 36px;
        color: #fff;
    }

    .lg-mobile-logo-lg {
        width: 72px;
        height: 72px;
        margin: 0 auto 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.25);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

    .lg-mobile-logo-lg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lg-mobile-logo-lg span {
        display: none;
        font-weight: 800;
        font-size: 1.25rem;
    }

    .lg-mobile-logo-lg:not(:has(img)) span,
    .lg-mobile-logo-lg img[style*="display: none"] ~ span {
        display: flex;
    }

    .lg-mobile-hero-brand h1 {
        margin: 0 0 4px;
        font-size: 1.125rem;
        font-weight: 800;
        letter-spacing: 0.14em;
    }

    .lg-mobile-hero-brand p {
        margin: 0 0 16px;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.75);
    }

    .lg-mobile-welcome {
        display: inline-flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px 20px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(8px);
    }

    .lg-mobile-greeting {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.7);
    }

    .lg-mobile-welcome strong {
        font-size: 1.125rem;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    /* Panel mobile */
    .lg-main {
        background: #fff;
    }

    .lg-panel {
        flex: 1;
        min-height: 0;
        padding: 0 20px;
        justify-content: flex-start;
        margin-top: -8px;
        position: relative;
        z-index: 3;
    }

    .lg-panel-card {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        max-width: none;
        margin: 0;
        padding: 22px 20px 16px;
        background: #fff;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transform: none !important;
    }

    .lg-panel-card::before,
    .lg-panel-card::after {
        display: none;
    }

    .lg-panel-head--mobile {
        display: none;
    }

    .lg-panel-head--desktop {
        display: none;
    }

    .lg-user-card {
        padding: 14px 16px;
        margin-bottom: 18px;
        border-radius: 16px;
        background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
        border: 1px solid #dbeafe;
    }

    .lg-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .lg-field-label {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }

    .lg-input {
        height: 54px;
        font-size: 1.0625rem;
        border-radius: 16px;
        background: #f8fafc;
    }

    .lg-submit {
        height: 54px;
        border-radius: 16px;
        font-size: 1rem;
        margin-top: 4px;
    }

    .lg-trust-row {
        margin-top: 18px;
        gap: 10px;
    }

    .lg-trust-chip {
        padding: 12px 8px;
        border-radius: 14px;
        font-size: 0.625rem;
        background: #fff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .lg-trust-chip i {
        font-size: 1.0625rem;
    }

    .lg-mobile-modules {
        display: block;
        margin-top: 20px;
        padding-top: 0;
        border-top: none;
    }

    .lg-mobile-modules-label {
        margin: 0 0 10px;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #94a3b8;
        text-align: center;
    }

    .lg-mobile-modules-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .lg-module-tile {
        padding: 14px 6px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .lg-module-tile i {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: linear-gradient(145deg, #eff6ff, #dbeafe);
        font-size: 0.9375rem;
        color: #2563eb;
        margin-bottom: 2px;
    }

    .lg-module-tile span {
        font-size: 0.625rem;
    }

    .lg-footer {
        background: #fff;
        padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
        border-top: none;
        gap: 10px;
    }

    .lg-footer-copy {
        font-size: 0.625rem;
    }

    .lg-footer-dev {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.75rem;
        background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
        border-color: rgba(37, 211, 102, 0.25);
    }
}

@media (max-width: 1023px) and (max-height: 700px) {
    .lg-mobile-hero {
        padding: 12px 20px 28px;
    }

    .lg-mobile-logo-lg {
        width: 58px;
        height: 58px;
        margin-bottom: 10px;
        border-radius: 16px;
    }

    .lg-mobile-hero-brand h1 { font-size: 1rem; }
    .lg-mobile-hero-brand p { margin-bottom: 10px; }
    .lg-mobile-welcome { padding: 8px 16px; }
    .lg-mobile-welcome strong { font-size: 1rem; }

    .lg-panel-card { padding-top: 16px; }
    .lg-mobile-modules { margin-top: 14px; }
    .lg-module-tile { padding: 10px 4px; }
    .lg-module-tile i { width: 32px; height: 32px; font-size: 0.875rem; }
}

@media (max-width: 1023px) and (max-height: 620px) {
    .lg-mobile-modules { display: none; }
    .lg-trust-row { margin-top: 12px; }
    .lg-trust-chip { padding: 8px 6px; }
}

/* Panel shell */
.lg-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(10px, 1.8vh, 20px) clamp(14px, 2.5vw, 24px);
    width: 100%;
}

@media (min-width: 1024px) {
    .lg-panel {
        padding: clamp(16px, 2.5vh, 28px) clamp(36px, 4vw, 52px);
    }
}

@media (max-width: 1023px) {
    /* mobile styles in .lg-mobile-shell block above */
}

/* Panel card — bloco visual principal */
.lg-panel-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: clamp(18px, 2.8vh, 28px) clamp(18px, 3vw, 28px);
    background: #fff;
    border-radius: clamp(18px, 2.5vh, 24px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.lg-panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #2563eb, #60a5fa, #2563eb);
}

.lg-panel-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .lg-panel-card {
        max-width: none;
        box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.06),
            0 16px 40px rgba(15, 23, 42, 0.06);
    }
}

@media (max-width: 1023px) {
    /* panel-card mobile styles in .lg-mobile-shell block */
}

.lg-panel-head--mobile { display: block; }
.lg-panel-head--desktop { display: none; }

@media (min-width: 1024px) {
    .lg-panel-head--mobile { display: none; }
    .lg-panel-head--desktop { display: block; }
}

.lg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin: 0 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.lg-panel-title {
    font-size: clamp(1.375rem, 2.8vh, 1.625rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.lg-panel-sub {
    font-size: clamp(0.8125rem, 1.6vh, 0.9375rem);
    color: #64748b;
    margin: 0 0 clamp(14px, 2vh, 20px);
    line-height: 1.45;
}

.lg-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
    animation: lgShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes lgShake {
    10%, 90%  { transform: translateX(-2px); }
    20%, 80%  { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60%  { transform: translateX(6px); }
}

.lg-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: clamp(14px, 2vh, 18px);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.lg-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 800;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.lg-user-info {
    flex: 1;
    min-width: 0;
}

.lg-user-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.lg-user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.lg-user-status {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.lg-form { flex-shrink: 0; }

.lg-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.lg-field {
    position: relative;
    margin-bottom: clamp(12px, 1.8vh, 16px);
}

.lg-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9375rem;
    pointer-events: none;
    transition: color 0.2s;
}

.lg-input {
    width: 100%;
    height: clamp(48px, 6.8vh, 54px);
    padding: 0 50px 0 44px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.lg-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lg-field:focus-within .lg-field-icon { color: #2563eb; }

.lg-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.lg-toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    transition: background 0.2s, color 0.2s;
}

.lg-toggle-pw:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.lg-submit {
    width: 100%;
    height: clamp(48px, 6.8vh, 54px);
    border: none;
    border-radius: 14px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s, box-shadow 0.2s;
}

.lg-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 55%);
    pointer-events: none;
}

.lg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.lg-submit:active {
    transform: translateY(0);
}

.lg-submit-text,
.lg-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.lg-submit-loading { display: none; }

.lg-page.lg-loading .lg-submit-text { display: none; }
.lg-page.lg-loading .lg-submit-loading { display: inline-flex; }
.lg-page.lg-loading .lg-submit { pointer-events: none; opacity: 0.9; }

.lg-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lgSpin 0.7s linear infinite;
}

@keyframes lgSpin {
    to { transform: rotate(360deg); }
}

/* Trust chips — grid 3 colunas */
.lg-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: clamp(14px, 2vh, 18px);
    flex-shrink: 0;
}

.lg-trust-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.5625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.25;
    transition: border-color 0.2s, background 0.2s;
}

.lg-trust-chip:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: #f0f9ff;
}

.lg-trust-chip i {
    color: #2563eb;
    font-size: 0.9375rem;
}

/* Mobile modules — desktop hidden */
.lg-mobile-modules {
    display: none;
}

@media (min-width: 1024px) {
    .lg-mobile-modules { display: none; }
}

/* Footer */
.lg-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 1.6vh, 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 12px);
    text-align: center;
}

@media (min-width: 1024px) {
    .lg-footer {
        padding: 12px clamp(36px, 4vw, 52px) clamp(16px, 2vh, 22px);
    }
}

@media (max-width: 1023px) {
    .lg-footer {
        /* mobile footer in .lg-mobile-shell block */
    }
}

.lg-footer-copy {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.lg-footer-dev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 700;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1023px) {
    .lg-footer-dev { background: #f8fafc; }
}

.lg-footer-dev:hover {
    border-color: #25d366;
    color: #128c7e;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
}

.lg-footer-dev i {
    color: #25d366;
    font-size: 1rem;
}

/* Telas baixas desktop — escala suave */
@media (min-width: 1024px) and (max-height: 780px) {
    .lg-hero-inner {
        transform: scale(0.96);
        transform-origin: center left;
    }

    .lg-panel-card {
        transform: scale(0.97);
        transform-origin: center center;
    }
}

@media (min-width: 1024px) and (max-height: 680px) {
    .lg-hero-inner {
        transform: scale(0.9);
        transform-origin: center left;
    }

    .lg-panel-card {
        transform: scale(0.93);
        transform-origin: center center;
    }

    .lg-hero-lead {
        font-size: 0.8125rem;
        margin-bottom: 10px;
    }
}

@media (min-width: 1024px) and (max-height: 580px) {
    .lg-hero-inner { transform: scale(0.82); }
    .lg-panel-card { transform: scale(0.88); }
}

@media (min-width: 1400px) {
    body.lg-page { grid-template-columns: 1fr 540px; }
}

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