/* =============================================================
   TELA INICIAL / AUTENTICAÇÃO - FIDELÍSSIMO
   ============================================================= */

.auth-container {
    max-width: 440px;
    width: 100%;
}

/* -------------------------------------------------------------
   ALTERNADOR DE PERFIL (SOU CLIENTE / SOU LOJISTA)
   ------------------------------------------------------------- */
.toggle-perfil {
    display: flex;
    background: #e9ecef;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #495057;
    font-size: 0.88rem !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Botão Ativo: Fundo Azul #1A3B70 e Texto Laranja #F39200 */
.toggle-btn.active {
    background: #1A3B70 !important;
    color: #F39200 !important;
    box-shadow: 0 3px 8px rgba(26, 59, 112, 0.2);
}

/* -------------------------------------------------------------
   FORMULÁRIOS E INPUTS
   ------------------------------------------------------------- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #1A3B70;
    margin-bottom: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #495057;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 13px; /* Altura confortável para os inputs */
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #F39200;
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.15);
}

.campos-cadastro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* -------------------------------------------------------------
   LINKS AUXILIARES
   ------------------------------------------------------------- */
.label-com-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-inline {
    background: none;
    border: none;
    color: #1A3B70 !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.link-inline:hover {
    color: #132b53 !important;
}

.auth-footer-link {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.link-btn {
    background: none;
    border: none;
    color: #1A3B70 !important;
    font-size: 0.88rem !important;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 4px;
}

.link-btn:hover {
    color: #132b53 !important;
}

.btn-auth-submit {
    width: auto !important;        /* Remove a largura total de 100% */
    min-width: 160px !important;   /* Largura mínima confortável */
    max-width: 200px !important;   /* Limite de largura para não esticar */
    align-self: center !important; /* Centraliza perfeitamente no formulário */
    margin: 12px auto 0 auto !important;
}

/* -------------------------------------------------------------
   GERADOR DE SENHA E MEDIDOR DE FORÇA
   ------------------------------------------------------------- */
.campo-senha-com-gerador {
    position: relative;
    display: flex;
    flex-direction: column;
}

.btn-sugerir-senha {
    background: none;
    border: none;
    color: #F39200;
    font-size: 0.78rem !important;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s;
}

.btn-sugerir-senha:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.forca-senha-box {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.forca-senha-trilho {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.forca-senha-progresso {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.forca-senha-txt {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    text-align: right;
}

/* -------------------------------------------------------------
   MODAL DE RECUPERAÇÃO
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    box-sizing: border-box;
}

.modal-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1A3B70;
}

.btn-fechar-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #868e96;
    cursor: pointer;
    line-height: 1;
}

.modal-subtitulo {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 14px;
}

/* =============================================================
   BANNER INTELIGENTE DE ACESSO VIA QR CODE
   ============================================================= */
.banner-convite-qr {
    background: #eef3fb;
    border: 1px solid #c5d6f0;
    border-left: 5px solid #F39200;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    text-align: left;
    font-size: 0.84rem;
    color: #1A3B70;
    line-height: 1.4;
}

.banner-convite-qr strong {
    color: #F39200;
    font-weight: 800;
}