/* Cash4DS — Home de acesso minimalista
 * Referência aprovada em 28/09/2026: tela original + quatro cards discretos
 * e assinatura DM2 no padrão visual do DM2 Integra.
 *
 * Este arquivo é carregado por último de propósito: concentra somente a
 * composição da tela inicial e não altera os demais passos do onboarding.
 */

#view-login {
    --c4-login-feature-width: min(calc(100% - 2rem), 344px);
    --c4-login-control-width: 320px;
}

/* Quatro recursos: informativos, não navegáveis antes da autenticação. */
#login-feature-strip {
    position: absolute;
    left: 50%;
    bottom: 230px;
    z-index: 19;
    width: var(--c4-login-feature-width);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: none !important;
}

.c4-login-feature {
    position: relative;
    height: 58px;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #4b4b50;
    font-family: 'Outfit', sans-serif;
    font-size: 11.25px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
}

.c4-login-feature:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 28px;
    transform: translateY(-50%);
    background: rgba(166, 138, 100, 0.20);
}

.c4-login-feature svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #a98354;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.70;
    filter: blur(0.18px);
}

.c4-login-feature span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mantém o bloco de acesso exatamente na hierarquia da tela original. */
#view-login > #login-access-panel.c4-auth-footer {
    gap: 6px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

#login-access-panel > div:first-child,
#login-access-panel > .c4-auth-primary,
#login-access-panel > .c4-auth-secondary {
    width: 100% !important;
    max-width: var(--c4-login-control-width) !important;
}

.c4-login-email-hint {
    margin: 0 0 7px;
    color: #71717a;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.c4-login-email-hint strong {
    color: #4b4b50;
    font-weight: 700;
}

html.dark #view-login .c4-login-email-hint {
    color: #a1a1aa;
}

html.dark #view-login .c4-login-email-hint strong {
    color: #d4d4d8;
}

#input-email-acesso {
    min-height: 52px !important;
    padding: 13px 16px !important;
    border: 1px solid rgba(166, 138, 100, 0.68) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #25252b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
    outline: none !important;
}

#input-email-acesso::placeholder {
    color: #a1a1aa;
    opacity: 1;
}

#input-email-acesso:focus,
#input-email-acesso:focus-visible {
    border-width: 1px !important;
    border-color: #a68a64 !important;
    box-shadow: none !important;
    outline: none !important;
}

#login-access-panel > .c4-auth-secondary {
    min-height: 48px !important;
    height: 48px !important;
    padding: 3px 8px 0 !important;
    color: #776853 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    transform: none !important;
}

#login-access-panel > #acesso-timer:empty {
    display: none !important;
}

#login-access-panel > #acesso-timer:not(:empty) {
    min-height: 18px !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

#view-login #btn-acesso-continuar {
    min-height: 52px !important;
    height: 52px !important;
    margin-top: 0 !important;
    padding: 11px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #a68a64 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Rodapé no mesmo desenho do DM2 Integra: texto pequeno + linhas laterais. */
#view-login > .c4-auth-brand.c4-login-brand-footer {
    position: absolute !important;
    left: 24px !important;
    right: 24px !important;
    bottom: 9px !important;
    width: auto !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    line-height: 18px !important;
    z-index: 10;
}

.c4-login-brand-line {
    flex: 1 1 auto;
    height: 1px;
    max-width: 92px;
    background: #d6d8dc;
}

.c4-login-brand-name {
    flex: 0 0 auto;
    color: #67707d;
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 18px;
    white-space: nowrap;
}

/* O teclado usa o layout compacto já homologado. Os cards são decorativos e
 * saem por completo para não disputar espaço com o campo e o CTA. */
html.cash4ds-native-android body.cash4ds-keyboard-open #login-feature-strip {
    display: none !important;
}

html.cash4ds-native-android body.cash4ds-keyboard-open #view-login > .c4-auth-brand.c4-login-brand-footer {
    display: none !important;
}

/* O strip não participa do fluxo; sua volta não reposiciona o gráfico. */
html.cash4ds-native-android #login-feature-strip,
html.cash4ds-native-android #login-feature-strip * {
    transition: none !important;
    animation: none !important;
}

html.dark #view-login .c4-login-feature {
    color: #d4d4d8;
}

html.dark #view-login .c4-login-feature:not(:last-child)::after {
    background: rgba(197, 168, 128, 0.20);
}

html.dark #view-login .c4-login-feature svg {
    stroke: #c5a880;
    opacity: 0.68;
}

html.dark #input-email-acesso {
    background: #18181b !important;
    color: #e4e4e7 !important;
    border-color: rgba(197, 168, 128, 0.44) !important;
}

html.dark #input-email-acesso:focus,
html.dark #input-email-acesso:focus-visible {
    border-color: #c5a880 !important;
}

html.dark .c4-login-brand-line {
    background: #3f3f46;
}

html.dark .c4-login-brand-name {
    color: #a1a1aa;
}

@media (max-width: 360px) {
    #view-login {
        --c4-login-feature-width: min(calc(100% - 1.5rem), 332px);
    }
    #login-feature-strip {
        gap: 0;
    }
    .c4-login-feature {
        height: 56px;
        font-size: 10.75px;
    }
    .c4-login-feature svg {
        width: 19px;
        height: 19px;
    }
}

@media (max-height: 700px) {
    #login-feature-strip {
        bottom: 210px;
    }
    .c4-login-feature {
        height: 54px;
    }
    .c4-login-feature svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #login-feature-strip,
    #login-feature-strip * {
        animation: none !important;
        transition: none !important;
    }
}
