/* Login v2 — LeadAds (mockup hero-login-5) */

@media (min-width: 961px) {
    html:has(.lg2-page) {
        height: 100%;
        overflow: hidden;
    }
}

.lg2-page {
    --lg2-black: #000000;
    --lg2-magenta: #e11d8f;
    --lg2-magenta-soft: #c084fc;
    --lg2-surface: #ffffff;
    --lg2-border: #ebebef;
    --lg2-text: #111114;
    --lg2-muted: #6b6b76;
    --lg2-gradient-btn: linear-gradient(90deg, #e11d8f 0%, #9b2bbf 55%, #7c28a7 100%);
    --lg2-gradient-text: linear-gradient(135deg, #e11d8f 0%, #c084fc 100%);
    --lg2-radius: 16px;
    --lg2-radius-sm: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--lg2-text);
    min-height: 100dvh;
    margin: 0;
    background: var(--lg2-surface);
    overflow-x: hidden;
}

@media (min-width: 961px) {
    .lg2-page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
}

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

/* —— Shell —— */
.lg2-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100dvh;
}

@media (min-width: 961px) {
    .lg2-shell {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }
}

/* —— Reveal —— */
.lg2-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: lg2Reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--lg2-delay, 0ms);
}

@keyframes lg2Reveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .lg2-reveal { opacity: 1; transform: none; animation: none; }
}

/* —— Logo (painel direito) —— */
.lg2-logo--on-light {
    display: flex;
    justify-content: center;
}

.lg2-logo__img {
    width: min(200px, 48vw);
    height: auto;
    display: block;
}

/* —— Painel esquerdo —— */
.lg2-showcase {
    background: var(--lg2-black);
    color: #fafafa;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2.5vh, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 1vh, 0.75rem);
    min-height: 100dvh;
}

@media (min-width: 961px) {
    .lg2-showcase {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
    }
}

.lg2-showcase::before {
    content: '';
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 920px);
    height: 65%;
    background: radial-gradient(
        ellipse at center,
        rgba(189, 0, 255, 0.32) 0%,
        rgba(124, 40, 167, 0.14) 42%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 0;
}

.lg2-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 120% 70% at 50% 0%,
        rgba(124, 40, 167, 0.1) 0%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 0;
}

.lg2-showcase__body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vh, 1.5rem);
    width: 100%;
    max-width: none;
    min-height: 0;
    padding-top: clamp(0.5rem, 2vh, 1.75rem);
}

@media (min-width: 961px) {
    .lg2-showcase__body {
        display: grid;
        grid-template-rows: min-content minmax(0, 1fr);
        align-content: stretch;
        justify-items: center;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        gap: clamp(0.5rem, 1.5vh, 1.25rem);
        padding-top: clamp(0.85rem, 2.5vh, 1.75rem);
    }
}

.lg2-showcase__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 961px) {
    .lg2-showcase__intro {
        max-width: min(92%, 580px);
    }
}

.lg2-showcase__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lg2-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.lg2-welcome-badge i {
    font-size: 0.875rem;
    color: var(--lg2-magenta);
}

.lg2-showcase__title {
    font-size: clamp(1.75rem, 2.4vw + 0.35rem, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin: 0;
    max-width: 20ch;
    text-align: center;
}

@media (min-width: 961px) {
    .lg2-showcase__title {
        max-width: min(100%, 22ch);
    }
}

.lg2-showcase__title em {
    font-style: normal;
    background: var(--lg2-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lg2-showcase__sub {
    font-size: clamp(0.8125rem, 1vw + 0.2rem, 1rem);
    line-height: 1.55;
    color: #a1a1aa;
    margin: clamp(0.35rem, 1vh, 0.65rem) 0 0;
    max-width: 44ch;
    text-align: center;
}

@media (min-width: 961px) {
    .lg2-showcase__sub {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.lg2-hero {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: 100%;
    line-height: 0;
    padding: 0;
    overflow: hidden;
    align-self: stretch;
}

@media (min-width: 961px) {
    .lg2-hero {
        width: 100%;
        max-width: 100%;
        height: 100%;
        align-self: stretch;
        justify-self: stretch;
        min-height: 0;
    }
}

.lg2-hero__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
}

/* —— Painel direito (login) —— */
.lg2-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: clamp(1.25rem, 3vh, 2rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--lg2-surface);
}

@media (min-width: 961px) {
    .lg2-auth {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.lg2-auth__column {
    width: 100%;
    max-width: min(420px, 88%);
    display: flex;
    flex-direction: column;
}

.lg2-auth__top {
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
}

.lg2-auth__tagline {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lg2-muted);
    letter-spacing: -0.01em;
}

.lg2-card {
    background: var(--lg2-surface);
    border: 1px solid #f0f0f2;
    border-radius: var(--lg2-radius);
    box-shadow: 0 4px 24px rgba(17, 17, 20, 0.06);
    padding: clamp(1.25rem, 2.5vh, 1.85rem) clamp(1.35rem, 2.5vw, 1.85rem);
}

.lg2-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    color: var(--lg2-text);
}

.lg2-card__sub {
    font-size: 0.875rem;
    color: var(--lg2-muted);
    line-height: 1.55;
    margin: 0 0 clamp(1rem, 2vh, 1.5rem);
}

.lg2-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.25rem;
    border-radius: var(--lg2-radius-sm);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.lg2-alert--success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.lg2-success-state {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
}

.lg2-success-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 29, 143, 0.12), rgba(124, 40, 167, 0.12));
    color: #7c28a7;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.lg2-success-state__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lg2-text);
    margin: 0 0 0.5rem;
}

.lg2-success-state__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--lg2-muted);
    margin: 0 0 1.25rem;
}

.lg2-btn--block {
    width: 100%;
    justify-content: center;
}

.lg2-auth-footnote {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--lg2-muted);
}

.lg2-auth-footnote .lg2-link {
    font-weight: 600;
}

.lg2-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--lg2-muted);
    line-height: 1.4;
}

.lg2-field {
    margin-bottom: 1.1rem;
}

.lg2-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lg2-text);
    margin-bottom: 0.45rem;
}

.lg2-input-wrap {
    position: relative;
}

.lg2-input-wrap > i.lg2-input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    font-size: 0.9375rem;
    pointer-events: none;
    transition: color 0.15s;
}

.lg2-input-wrap:focus-within > i.lg2-input-icon {
    color: var(--lg2-magenta);
}

.lg2-input {
    width: 100%;
    height: 50px;
    padding: 0 2.85rem 0 2.65rem;
    border: 1px solid var(--lg2-border);
    border-radius: var(--lg2-radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--lg2-text);
    background: var(--lg2-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lg2-input::placeholder {
    color: #a1a1aa;
}

.lg2-input:focus {
    outline: none;
    border-color: rgba(225, 29, 143, 0.4);
    box-shadow: 0 0 0 3px rgba(225, 29, 143, 0.1);
}

.lg2-input:focus-visible,
.lg2-btn:focus-visible,
.lg2-toggle-senha:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 29, 143, 0.2);
}

.lg2-toggle-senha {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: #a1a1aa;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg2-toggle-senha:hover {
    color: var(--lg2-text);
    background: #f4f4f5;
}

.lg2-row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lg2-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: var(--lg2-muted);
    cursor: pointer;
}

.lg2-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--lg2-magenta);
}

.lg2-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lg2-magenta);
    text-decoration: none;
}

.lg2-link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.lg2-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--lg2-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s, opacity 0.15s;
}

.lg2-btn--primary {
    color: #fff;
    background: var(--lg2-gradient-btn);
    box-shadow: 0 4px 16px rgba(225, 29, 143, 0.3);
}

.lg2-btn--primary:hover:not(:disabled) {
    box-shadow: 0 6px 22px rgba(225, 29, 143, 0.4);
    transform: translateY(-1px);
}

.lg2-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.lg2-btn--primary:disabled,
.lg2-btn--primary.is-loading {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.lg2-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lg2Spin 0.7s linear infinite;
}

.lg2-btn.is-loading .lg2-btn__spinner {
    display: block;
}

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

.lg2-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--lg2-muted);
}

.lg2-divider::before,
.lg2-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lg2-border);
}

.lg2-divider span {
    flex-shrink: 0;
}

.lg2-btn--google {
    color: var(--lg2-text);
    background: var(--lg2-surface);
    border: 1px solid var(--lg2-border);
    font-weight: 500;
}

.lg2-btn--google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lg2-auth__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: clamp(0.85rem, 2vh, 1.25rem) 0 0;
    font-size: 0.75rem;
    color: var(--lg2-muted);
    line-height: 1.4;
    text-align: center;
}

.lg2-auth__secure i {
    color: var(--lg2-magenta);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* —— Rodapé ConversãoX —— */
.lg2-cx-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-top: clamp(1rem, 2.5vh, 1.35rem);
    padding-top: 0.75rem;
    border-top: 1px solid #f3f3f5;
}

.lg2-cx-foot__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #b4b4bc;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.lg2-cx-foot__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lg2-cx-foot__link:hover .lg2-cx-foot__brand {
    color: #7c7c86;
}

.lg2-cx-foot__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 29, 143, 0.15);
    border-radius: 4px;
}

.lg2-cx-foot__icon {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}

.lg2-cx-foot__brand {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a8a8b0;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: color 0.2s ease;
}

/* —— Viewports baixas (altura) —— */
@media (min-width: 961px) and (max-height: 900px) {
    .lg2-showcase__body {
        gap: clamp(0.5rem, 1.5vh, 1rem);
        padding-top: clamp(0.75rem, 2vh, 1.25rem);
    }

    .lg2-showcase__title {
        font-size: clamp(1.5rem, 2.8vh, 2rem);
    }

    .lg2-showcase__sub {
        font-size: 0.875rem;
        margin-top: 0.35rem;
    }

    .lg2-welcome-badge {
        margin-bottom: 0.5rem;
        padding: 0.35rem 0.85rem;
        font-size: 0.75rem;
    }

    .lg2-showcase {
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .lg2-showcase__body {
        gap: 0.35rem;
        padding-top: 0.65rem;
    }


    .lg2-logo__img {
        width: 160px;
    }

    .lg2-auth__top {
        margin-bottom: 1rem;
    }

    .lg2-field {
        margin-bottom: 0.85rem;
    }

    .lg2-divider {
        margin: 1rem 0;
    }

    .lg2-input,
    .lg2-btn {
        height: 46px;
    }

    .lg2-cx-foot {
        margin-top: 0.65rem;
        padding-top: 0.5rem;
    }

    .lg2-cx-foot__icon {
        width: 13px;
        height: 13px;
    }
}

@media (min-width: 961px) and (max-height: 768px) {
    .lg2-showcase__sub {
        -webkit-line-clamp: 1;
    }

    .lg2-welcome-badge {
        margin-bottom: 0.35rem;
    }
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .lg2-shell {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .lg2-showcase {
        min-height: auto;
        height: auto;
        max-height: none;
        padding-bottom: 1.5rem;
    }

    .lg2-showcase__body {
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .lg2-showcase__title {
        max-width: none;
    }

    .lg2-showcase__sub {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .lg2-hero {
        flex: none;
        max-width: 100%;
        max-height: none;
        overflow: visible;
    }

    .lg2-hero__img {
        height: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        max-height: min(48dvh, 420px);
        object-fit: contain;
    }

    .lg2-auth {
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 2rem 1.25rem 2.5rem;
    }

    .lg2-auth__top {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 480px) {
    .lg2-card {
        padding: 1.65rem 1.35rem 1.5rem;
    }

    .lg2-welcome-badge {
        font-size: 0.75rem;
    }
}
