/**
 * auth-pages.css - Telas denied e expired (fluxo de autenticação)
 * Padrão visual WOMM-CRM: variáveis CSS, Inter, PADRAO_pagina_erro / PADRAO_css_variables
 * Quando carregado com gestao-alcadas (ex.: mudar-senha), variáveis comuns vêm de lá.
 * Quando carregado sozinho (editarsenha, denied, expired), as abaixo garantem o visual.
 */

:root {
    /* Cores base (usadas quando auth-pages está sozinho; gestao-alcadas redefine quando presente) */
    --color-primary: #006FFF;
    --color-primary-dark: #0056CC;
    --color-white: #FFFFFF;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-success: #00AF4B;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius-sm: 12px;
    --transition: all 0.3s ease;

    /* Cores adicionais (gestao-alcadas não define ou usa as mesmas) */
    --color-secondary: #00afef;
    --color-success-alt: #008000;
    --color-danger-light: #FEE2E5;
    --color-error: #FF0000;
    --color-error-snackbar: #ed4337;
    --color-text-secondary: #6B7280;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-input-bg: #F2F2F2;
    --color-input-icon: #CFCFCF;
    --color-input-placeholder: #9D9D9D;
    --color-modal-text: #616161;
    --color-modal-hint: #858585;

    /* Overlays */
    --overlay-modal: rgba(0, 0, 0, 0.4);
    --overlay-loading: rgba(255, 255, 255, 0.7);

    /* Border radius / sombras adicionais (--border-radius, --border-radius-sm, --shadow em gestao-alcadas) */
    --border-radius-lg: 16px;
    --border-radius-input: 17px;
    --border-radius-btn: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0px 0px 25px rgba(0, 111, 255, 0.2);
    --shadow-btn-hover: 0px 0px 25px rgba(0, 111, 255, 0.4);
    --shadow-btn-success-hover: 0px 0px 25px rgba(0, 128, 0, 0.3);
}

* {
    box-sizing: border-box;
}

/* Evita faixa/borda branca ao redor do conteúdo: index.css define html { background-color: white };
   Em telas com body.auth-page (mudar-senha, editarsenha, etc.) o html deve seguir o mesmo tom do gradiente. */
html {
    background-color: var(--color-gray-50);
}

/* --- Body / Layout --- */
.auth-page {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-gray-100) 50%, var(--color-gray-200) 100%);
    min-height: 100vh;
    height: auto;
    margin: 0;
    color: var(--color-text);
    padding: 0;
}

/* Área de conteúdo abaixo do navbar (ex.: mudar-senha); padding só aqui para navbar colado no topo e nas laterais */
.auth-page__content {
    padding: 24px 16px 40px;
}

/* Logo (telas standalone: editarsenha, denied, expired) */
.auth-page__logo {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 24px;
    margin-left: 16px;
    margin-right: 16px;
}

.auth-page__logo img {
    max-width: 100px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Seletor de idioma (denied/expired): PT, EN, ES */
.auth-page__lang-selector {
    margin-top: 10px;
}
.auth-page__lang-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.auth-page__lang-link:hover {
    text-decoration: underline;
}

/* Loading overlay */
.auth-page #loading {
    display: none;
    background: var(--overlay-loading);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px;
}

/* Container card (telas standalone) */
.auth-page .auth-page__container {
    width: calc(100% - 32px);
    max-width: 495px;
    min-height: 400px;
    margin: 24px auto 40px;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px 20px 32px;
}

/* Mensagem de estado (denied / expired) */
.auth-page__message {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--color-error);
    margin-bottom: 20px;
}

.auth-page__message p {
    margin: 0;
}

/* Form area */
.auth-page__form-wrap {
    text-align: center;
    width: 100%;
}

/* Input wrapper */
.auth-page .inputWraper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.auth-page .beforeInput {
    width: 44px;
    height: 55px;
    background: var(--color-input-icon);
    border-radius: var(--border-radius-input) 0 0 var(--border-radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.auth-page .iclog {
    width: 24px;
    height: 24px;
    position: relative;
}

.auth-page .iclog.mdi {
    width: auto;
    height: auto;
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    color: var(--color-primary);
}

.auth-page .cf {
    width: 65%;
    height: 55px;
    background: var(--color-input-bg);
    border-radius: 0 var(--border-radius-input) var(--border-radius-input) 0;
    border: none;
    margin-bottom: 15px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    transition: var(--transition);
}

.auth-page .cf::placeholder {
    color: var(--color-input-placeholder);
}

.auth-page .cf:focus {
    outline: none;
    box-shadow: none;
}

.auth-page .smsenha {
    width: 36px;
    height: 55px;
    border-radius: 0 var(--border-radius-input) var(--border-radius-input) 0;
    margin-bottom: 15px;
    margin-left: -36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-page .msenha {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.auth-page .msenha.mdi {
    width: auto;
    height: auto;
    font-size: 22px;
    line-height: 1;
    color: var(--color-primary);
}

/* Link Esqueci senha */
.auth-page .auth-page__forgot {
    text-align: right;
    width: 85%;
    margin: 0 auto 8px;
}

.auth-page .auth-page__forgot a {
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
}

/* Botão Login */
.auth-page [data-womm-fl-actions] > div,
.auth-page .auth-page__form-wrap > div {
    width: 100%;
}

.auth-page .auth-page__form-wrap a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.auth-page .btn_login {
    background: var(--color-primary);
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    color: var(--color-white);
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    display: block;
}

.auth-page .btn_login:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-btn-hover);
}

.auth-page .btn_login:focus {
    outline: none;
}

/* Separador OU */
.auth-page .auth-page__divider {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 16px auto;
    color: var(--color-gray-400);
}

.auth-page .auth-page__divider hr {
    width: 40%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--color-gray-200);
}

.auth-page .auth-page__divider p {
    margin: 0 12px;
    font-weight: 600;
    font-size: 14px;
}

/* Botão Voltar ao início */
.auth-page .btn_info {
    display: block;
    text-decoration: none;
    background: var(--color-success);
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    color: var(--color-white);
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    margin-top: 0;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    line-height: 48px;
    text-align: center;
}

.auth-page .btn_info:hover {
    box-shadow: var(--shadow-btn-success-hover);
    color: var(--color-white);
}

.auth-page .btn_info:focus {
    outline: none;
}

/* --- Modal Esqueci senha --- */
.auth-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--overlay-modal);
    cursor: default;
}

.auth-page .modal-content {
    background: var(--color-white);
    color: var(--color-modal-text);
    margin: 5% auto;
    padding: 20px;
    width: 500px;
    max-width: 90%;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.auth-page .modal-content .auth-page__modal-close {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}

.auth-page .modal-content .auth-page__modal-close span {
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

.auth-page .modal-content input[type="email"],
.auth-page .modal-content .auth-page__modal-email {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-input-bg);
    border-radius: var(--border-radius-btn);
    border: none;
}

.auth-page .modal-content input[type="email"]::placeholder {
    color: var(--color-input-placeholder);
}

.auth-page .modal-content .auth-page__modal-hint {
    color: var(--color-modal-hint);
    font-weight: 500;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

.auth-page .modal-content button[type="submit"] {
    width: 200px;
    border: none;
    border-radius: var(--border-radius-btn);
    height: 36px;
    background: var(--color-success);
    color: var(--color-white);
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.auth-page .modal-content button[type="submit"]:hover {
    box-shadow: var(--shadow-btn-success-hover);
}

/* --- Snackbar --- */
.auth-page #snackbar {
    visibility: hidden;
    width: 90%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success-alt);
    color: var(--color-white);
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    position: fixed;
    z-index: 10000;
    bottom: 30px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.auth-page #snackbar.show {
    visibility: visible;
    animation: auth-fadein 0.5s, auth-fadeout 0.5s 2.5s;
}

.auth-page #snackbar small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.95;
}

.auth-page #snackbarError {
    visibility: hidden;
    width: 90%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-error-snackbar);
    color: var(--color-white);
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    position: fixed;
    z-index: 10000;
    bottom: 30px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.auth-page #snackbarError.show {
    visibility: visible;
    animation: auth-fadein 0.5s, auth-fadeout 0.5s 2.5s;
}

@keyframes auth-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes auth-fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Loader --- */
.auth-page .loader {
    margin: auto;
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsivo --- */
@media (max-width: 480px) {
    .auth-page__content {
        padding: 16px 12px 32px;
    }

    .auth-page__logo {
        margin-left: 12px;
        margin-right: 12px;
    }

    .auth-page .auth-page__logo img {
        max-width: 90px;
    }

    .auth-page .auth-page__container {
        width: calc(100% - 24px);
        max-width: none;
        margin: 24px auto 40px;
        padding: 20px 16px 24px;
        min-height: 380px;
    }

    .auth-page__message {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .auth-page .cf {
        width: 65%;
    }

    .auth-page .btn_login,
    .auth-page .btn_info {
        width: 100%;
        max-width: 100%;
    }

    .auth-page .modal-content {
        width: 90%;
        margin: 15% auto;
    }
}

/* --- Editar senha: requisitos e botão desabilitado --- */
.auth-page .requi {
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 16px 0 4px;
    font-family: 'Inter', sans-serif;
}

.auth-page .itens {
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 4px 0;
    font-family: 'Inter', sans-serif;
}

.auth-page .imgconf {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    margin-right: 4px;
}

.auth-page .btn_login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card da tela settings/mudar-senha — alinhado ao editarsenha (auth-page__container) */
.auth-page .mudar-senha-card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

/* Barra de rolagem neutra nas telas de login / mudar-senha (sobrescreve o tema global do index.css) */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) var(--color-gray-100);
}
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}
html::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* --- Escolher carteira (auth-page standalone) --- */
.auth-page--escolher-carteira {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px 48px;
}

.auth-page__shell {
    width: 100%;
    max-width: 520px;
}

.auth-page .auth-page__container--picker {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 24px 20px;
}

.auth-carteira-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-carteira-aside {
    margin-bottom: 18px;
}

.auth-carteira-main {
    min-width: 0;
}

.auth-carteira-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auth-carteira-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.auth-carteira-header .womm-user-avatar--auth {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    flex: 0 0 52px;
    font-size: 15px;
    margin: 0;
    display: inline-flex;
    box-shadow: 0 4px 14px rgba(0, 111, 255, 0.18);
    border: 2px solid rgba(0, 111, 255, 0.12);
}

.auth-carteira-header__text {
    min-width: 0;
    text-align: left;
}

.auth-carteira-header__greeting {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.auth-carteira-header__name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

.auth-carteira-header__meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.auth-carteira-header__dot {
    margin: 0 4px;
    opacity: 0.55;
}

.auth-carteira-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 111, 255, 0.14);
    border-radius: 14px;
}

.auth-carteira-preview__logo-wrap {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    padding: 6px;
}

.auth-carteira-preview__logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.auth-carteira-preview__text {
    min-width: 0;
    text-align: left;
}

.auth-carteira-preview__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: 2px;
}

.auth-carteira-preview__text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.auth-carteira-preview__id {
    display: block;
    font-size: 12px;
    color: var(--color-gray-500);
    margin-top: 2px;
}

.auth-carteira-search {
    position: relative;
    margin-bottom: 12px;
}

.auth-carteira-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    pointer-events: none;
}

.auth-carteira-search__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    transition: var(--transition);
}

.auth-carteira-search__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 111, 255, 0.12);
}

.auth-carteira-list-wrap {
    margin-bottom: 16px;
}

.auth-carteira-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    background: #fff;
}

.auth-carteira-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-carteira-card:last-child {
    border-bottom: none;
}

.auth-carteira-card:hover {
    background: var(--color-gray-50);
}

.auth-carteira-card.is-selected {
    background: rgba(0, 111, 255, 0.08);
    border-left: 3px solid var(--color-primary);
    padding-left: 9px;
}

.auth-carteira-card[hidden] {
    display: none;
}

.auth-carteira-card__logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    padding: 4px;
}

.auth-carteira-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-carteira-card__body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.auth-carteira-card__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.auth-carteira-card__code {
    display: block;
    font-size: 11px;
    color: var(--color-gray-500);
    margin-top: 1px;
    letter-spacing: 0.03em;
}

.auth-carteira-card__check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: transparent;
    background: transparent;
    transition: var(--transition);
}

.auth-carteira-card.is-selected .auth-carteira-card__check {
    color: #fff;
    background: var(--color-primary);
}

.auth-carteira-list-empty {
    margin: 10px 4px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.auth-carteira-form__actions {
    margin-top: 4px;
}

.auth-carteira-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
}

.auth-carteira-submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-btn-hover);
}

.auth-carteira-submit:disabled,
.auth-carteira-submit.is-busy {
    opacity: 0.85;
    cursor: wait;
}

.auth-carteira-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-200);
}

.auth-carteira-footer__brand {
    opacity: 0.55;
    height: auto;
}

.auth-carteira-footer__logout {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.auth-carteira-footer__logout:hover {
    text-decoration: underline;
}

/* Desktop: layout em 2 colunas (contexto | lista) */
@media (min-width: 900px) {
    .auth-page--escolher-carteira {
        align-items: center;
        min-height: 100vh;
        padding: 40px 32px 48px;
        box-sizing: border-box;
    }

    .auth-page__shell {
        max-width: 920px;
    }

    .auth-page .auth-page__container--picker {
        padding: 32px 36px 24px;
    }

    .auth-carteira-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }

    .auth-carteira-aside {
        flex: 0 0 340px;
        max-width: 340px;
        margin-bottom: 0;
        padding-right: 8px;
        border-right: 1px solid var(--color-gray-200);
        display: flex;
        flex-direction: column;
    }

    .auth-carteira-header {
        margin-bottom: 24px;
    }

    .auth-carteira-preview {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px 18px;
        margin-bottom: 0;
    }

    .auth-carteira-preview__logo-wrap {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
        margin-bottom: 12px;
    }

    .auth-carteira-main {
        flex: 1;
        min-width: 0;
    }

    .auth-carteira-form {
        height: 100%;
    }

    .auth-carteira-list-wrap {
        flex: 1;
        margin-bottom: 18px;
    }

    .auth-carteira-list {
        max-height: 360px;
    }

    .auth-carteira-footer {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .auth-page--escolher-carteira {
        padding: 16px 12px 32px;
    }

    .auth-page .auth-page__container--picker {
        padding: 20px 16px 16px;
    }

    .auth-carteira-header__name {
        font-size: 20px;
    }

    .auth-carteira-list {
        max-height: 240px;
    }
}

/* --- Fast login (contas salvas) --- */
.womm-fast-login {
    width: 100%;
}

.womm-fast-login__welcome {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.womm-fast-login__subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.45;
}

.womm-fast-login__accounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    max-height: 320px;
    overflow-y: auto;
    padding: 2px 4px 4px;
}

.womm-fast-login__card-wrap {
    position: relative;
    min-width: 0;
}

.womm-fast-login__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
    padding: 20px 10px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font: inherit;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.womm-fast-login__card:hover,
.womm-fast-login__card.is-active {
    border-color: rgba(0, 111, 255, 0.4);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.womm-fast-login__card.is-active {
    cursor: default;
    transform: none;
}

.womm-fast-login__card .womm-user-avatar--picker {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    flex: 0 0 52px;
    font-size: 16px;
    margin: 0;
    border: 2px solid rgba(0, 111, 255, 0.14);
    box-shadow: 0 4px 12px rgba(0, 111, 255, 0.15);
}

.womm-fast-login__card-text {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.womm-fast-login__card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.womm-fast-login__card-login {
    font-size: 11px;
    color: var(--color-text-muted);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.womm-fast-login__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(0, 111, 255, 0.28);
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0, 111, 255, 0.15);
    font-size: 11px;
    line-height: 1;
}

.womm-fast-login__remove .mdi {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.womm-fast-login__remove-icon,
.womm-fast-login__remove svg {
    display: none;
}

.womm-fast-login__remove:hover {
    background: var(--color-danger-light);
    color: var(--color-error);
    border-color: rgba(255, 0, 0, 0.25);
}

.womm-fast-login__link-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

.womm-fast-login__link-btn:hover {
    text-decoration: underline;
}

.womm-fast-login__link-btn--other {
    margin-top: 12px;
}

/* Conta selecionada — card retangular horizontal */
.womm-fast-login__selected-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 290px;
    max-width: 90%;
    margin: 4px auto 0;
    padding: 12px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.womm-fast-login__selected-card .womm-user-avatar--selected {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    font-size: 14px;
    margin: 0;
    border: 2px solid rgba(0, 111, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 111, 255, 0.12);
}

.womm-fast-login__selected-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.womm-fast-login__selected-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.womm-fast-login__selected-login {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Campo login moderno (fast login senha + login completo) */
.womm-fast-login--password-mode [data-womm-fl-pass-row].inputWraper,
.womm-fast-login--full-mode [data-womm-fl-fields] .inputWraper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 290px;
    max-width: 90%;
    margin: 14px auto 0 !important;
    padding: 0 12px 0 0;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.womm-fast-login--full-mode [data-womm-fl-user-row].inputWraper {
    margin-top: 0 !important;
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .beforeInput,
.womm-fast-login--full-mode [data-womm-fl-fields] .beforeInput {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 48px;
    margin: 0;
    color: var(--color-primary);
    background: rgba(0, 111, 255, 0.08);
    border-right: 1px solid var(--color-gray-200);
    border-radius: 0;
    flex-shrink: 0;
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .iclog.mdi,
.womm-fast-login--full-mode [data-womm-fl-fields] .iclog.mdi {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    position: static;
    display: inline-block;
    color: var(--color-primary);
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .cf,
.womm-fast-login--full-mode [data-womm-fl-fields] .cf {
    flex: 1;
    width: auto !important;
    min-width: 0;
    height: 48px;
    margin: 0 !important;
    padding: 0 8px 0 4px;
    background: transparent !important;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .cf::placeholder,
.womm-fast-login--full-mode [data-womm-fl-fields] .cf::placeholder {
    color: var(--color-input-placeholder);
    font-weight: 500;
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .cf:focus,
.womm-fast-login--full-mode [data-womm-fl-fields] .cf:focus {
    outline: none;
    box-shadow: none;
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .smsenha,
.womm-fast-login--full-mode [data-womm-fl-fields] .smsenha {
    position: static;
    width: 36px;
    height: 48px;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .msenha.mdi,
.womm-fast-login--full-mode [data-womm-fl-fields] .msenha.mdi {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
    opacity: 0.85;
    color: var(--color-primary);
}

.womm-fast-login--password-mode [data-womm-fl-pass-row] .smsenha:hover .msenha,
.womm-fast-login--full-mode [data-womm-fl-fields] .smsenha:hover .msenha {
    opacity: 0.85;
}

.womm-fast-login[data-variant="auth-page"] [data-womm-fl-actions] .btn_login,
.womm-fast-login[data-variant="modal"] [data-womm-fl-actions] .sendLogin {
    width: 100%;
    max-width: 100%;
    height: 48px;
    border-radius: 12px;
}

.womm-fast-login[data-variant="modal"] [data-womm-fl-actions] .sendLogin {
    width: 290px;
    max-width: 90%;
}
.womm-fast-login[data-variant="auth-page"] .womm-fast-login__selected-card,
.womm-fast-login[data-variant="auth-page"].womm-fast-login--password-mode [data-womm-fl-pass-row].inputWraper,
.womm-fast-login[data-variant="auth-page"].womm-fast-login--full-mode [data-womm-fl-fields] .inputWraper {
    width: 100%;
    max-width: 100%;
}

.womm-fast-login--password-mode [data-womm-fl-actions] .esqueceusenha,
.womm-fast-login--full-mode [data-womm-fl-actions] .esqueceusenha,
.womm-fast-login--password-mode [data-womm-fl-actions] .auth-page__forgot {
    width: 290px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.womm-fast-login[data-variant="auth-page"].womm-fast-login--password-mode [data-womm-fl-actions] .esqueceusenha,
.womm-fast-login[data-variant="auth-page"].womm-fast-login--full-mode [data-womm-fl-actions] .esqueceusenha,
.womm-fast-login[data-variant="auth-page"].womm-fast-login--password-mode [data-womm-fl-actions] .auth-page__forgot,
.womm-fast-login[data-variant="auth-page"].womm-fast-login--full-mode [data-womm-fl-actions] .auth-page__forgot {
    width: 100%;
    max-width: 100%;
}

.womm-fast-login__selected {
    margin-bottom: 0;
}

.womm-fast-login__selected .womm-fast-login__welcome {
    margin-bottom: 2px;
}

.womm-fast-login__selected .womm-fast-login__subtitle {
    margin-bottom: 6px;
}

.womm-fast-login[data-variant="modal"] .womm-fast-login__welcome {
    font-size: 16px;
}

.womm-fast-login[data-variant="modal"] .womm-fast-login__selected {
    margin-bottom: 0;
}

.womm-fast-login[data-variant="modal"] .womm-fast-login__accounts {
    max-height: none;
    overflow: visible;
}

#modalMovelLogin .modal-edit-body.modal-edit-body--fast-login-picker {
    max-height: 85vh;
    overflow-y: auto;
}
