/* Formulários de login/cadastro — par do wwwroot/js/auth-form.js. */

.senha-campo {
    position: relative;
}

    .senha-campo .form-control {
        padding-right: 2.75rem;
    }

    .senha-campo .form-control.is-invalid {
        padding-right: 2.75rem;
        background-image: none;
    }

.senha-olho {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: .25rem .5rem;
    line-height: 1;
    border-radius: 8px;
}

    .senha-olho:hover,
    .senha-olho:focus-visible {
        color: #111;
        background: rgba(0, 0, 0, .05);
        outline: none;
    }

.senha-forca {
    margin-top: .5rem;
}

.senha-forca-barra {
    height: 4px;
    border-radius: 99px;
    background: #e9ecef;
    overflow: hidden;
}

    .senha-forca-barra span {
        display: block;
        height: 100%;
        width: 0;
        border-radius: 99px;
        background: #adb5bd;
        transition: width .25s ease, background-color .25s ease;
    }

.senha-forca.fraca .senha-forca-barra span { background: #dc3545; }
.senha-forca.media .senha-forca-barra span { background: #f0ad4e; }
.senha-forca.forte .senha-forca-barra span { background: #198754; }

.senha-forca-rotulo {
    font-size: .72rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: .25rem;
}

.senha-forca.fraca .senha-forca-rotulo { color: #dc3545; }
.senha-forca.media .senha-forca-rotulo { color: #b7791f; }
.senha-forca.forte .senha-forca-rotulo { color: #198754; }

.senha-forca:not(.ativo) .senha-regras {
    display: none;
}

.senha-regras {
    list-style: none;
    padding: 0;
    margin: .35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .85rem;
    font-size: .75rem;
    color: #6c757d;
}

    .senha-regras li {
        display: flex;
        align-items: center;
        gap: .3rem;
    }

        .senha-regras li.ok {
            color: #198754;
        }

.erro-campo {
    font-size: .78rem;
    color: #dc3545;
    margin-top: .3rem;
}

.form-check .erro-campo {
    margin-left: -1.5em;
}

/* Faixa de teste grátis + escolha de plano no cadastro de empresa */
.cadastro-trial {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 14px;
    background: #111;
    color: #fff;
    margin-bottom: 1rem;
}

    .cadastro-trial i {
        font-size: 1.4rem;
    }

    .cadastro-trial strong {
        display: block;
        font-size: .95rem;
    }

    .cadastro-trial span {
        font-size: .78rem;
        color: rgba(255, 255, 255, .75);
    }

.cadastro-plano-bloco {
    border-top: 1px solid #e9ecef;
    padding-top: .85rem;
    margin: .5rem 0 .85rem;
}

.cadastro-planos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.cadastro-plano {
    position: relative;
    margin: 0;
    cursor: pointer;
}

    .cadastro-plano input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .cadastro-plano .cadastro-plano-corpo {
        display: block;
        height: 100%;
        border: 1.5px solid #dee2e6;
        border-radius: 12px;
        padding: .6rem .5rem;
        text-align: center;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .cadastro-plano:hover .cadastro-plano-corpo {
        border-color: #adb5bd;
    }

    .cadastro-plano input:checked + .cadastro-plano-corpo {
        border-color: #111;
        box-shadow: 0 0 0 1px #111;
    }

    .cadastro-plano input:focus-visible + .cadastro-plano-corpo {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

.cadastro-plano-nome {
    display: block;
    font-weight: 700;
    font-size: .9rem;
}

.cadastro-plano-preco {
    display: block;
    font-size: .78rem;
    color: #6c757d;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .cadastro-plano-preco {
        font-size: .68rem;
    }

    .cadastro-plano .cadastro-plano-corpo {
        padding: .6rem .25rem;
    }
}

.cadastro-plano-selo {
    position: absolute;
    top: -.55rem;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    border-radius: 99px;
    padding: .1rem .45rem;
    white-space: nowrap;
}

.cadastro-periodo .btn {
    font-size: .75rem;
    padding: .2rem .6rem;
}

.cadastro-divisor {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #6c757d;
    font-size: .78rem;
    margin: 1rem 0;
}

    .cadastro-divisor::before,
    .cadastro-divisor::after {
        content: "";
        flex: 1;
        border-top: 1px solid #dee2e6;
    }

.btn-google {
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #111;
    font-weight: 600;
}

    .btn-google:hover {
        border-color: #111;
        background: #f8f9fa;
        color: #111;
    }

.cadastro-selos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    font-size: .72rem;
    color: #6c757d;
    margin-top: .75rem;
}

    .cadastro-selos i {
        color: #198754;
    }

.texto-termos-google {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: .35rem;
}

/* Passos com formulário do onboarding (completar cadastro / link de agendamento) */
.onboarding-form .form-label {
    font-size: .8rem;
    font-weight: 600;
}

.link-agendamento-campo .input-group-text {
    font-size: .85rem;
    color: #6c757d;
    background: #f8f9fa;
}

.link-agendamento-pronto {
    border: 1.5px solid #198754;
    background: #f0faf4;
    border-radius: 12px;
    padding: .85rem 1rem;
}

    .link-agendamento-pronto a.link-url {
        font-weight: 600;
        word-break: break-all;
        color: #111;
    }

/* Etapas do onboarding com formulário (logo, serviços, profissionais, horários, link) */
.ob-ajuda {
    font-size: .75rem;
    color: #6c757d;
}

.ob-acoes {
    display: flex;
    justify-content: flex-end;
    margin-top: .85rem;
}

.ob-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ob-logo-previa {
    width: 88px;
    height: 88px;
    flex: none;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.6rem;
    color: #adb5bd;
}

    .ob-logo-previa img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ob-logo-area {
    flex: 1;
    border: 1.5px dashed #ced4da;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s ease, background-color .15s ease;
}

    .ob-logo-area:hover,
    .ob-logo-area.arrastando {
        border-color: #111;
        background: #f8f9fa;
    }

    .ob-logo-area > i {
        font-size: 1.4rem;
        color: #6c757d;
    }

.ob-sugestoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .75rem;
}

.ob-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    border: 1px dashed #adb5bd;
    background: #fff;
    color: #212529;
    border-radius: 99px;
    padding: .2rem .65rem;
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}

    .ob-chip:hover {
        border-color: #111;
    }

.ob-chip-solido {
    border-style: solid;
}

.ob-chip-check input {
    display: none;
}

.ob-chip-check i {
    display: none;
}

.ob-chip-check:has(input:checked) {
    border-style: solid;
    border-color: #111;
    background: #f1f3f5;
}

    .ob-chip-check:has(input:checked) i {
        display: inline;
    }

.ob-linha-add {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: end;
    margin-bottom: .75rem;
}

    .ob-linha-add .ob-col-tel {
        grid-column: span 2;
    }

.ob-lista {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
}

    .ob-lista li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .5rem;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: .45rem .75rem;
        font-size: .82rem;
        margin-bottom: .4rem;
    }

        .ob-lista li strong {
            font-weight: 600;
        }

    .ob-lista .ob-lista-vazia {
        justify-content: center;
        color: #6c757d;
        border-style: dashed;
    }

.ob-remover {
    border: 0;
    background: transparent;
    color: #adb5bd;
    padding: .15rem .35rem;
    border-radius: 6px;
}

    .ob-remover:hover {
        color: #dc3545;
        background: #fdecee;
    }

.ob-eu-mesmo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: .65rem .85rem;
    margin-bottom: .85rem;
}

.ob-horario {
    display: grid;
    grid-template-columns: 64px 40px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    gap: .4rem;
    align-items: center;
    font-size: .82rem;
    margin-bottom: .35rem;
}

    .ob-horario .form-control {
        padding: .25rem .4rem;
        font-size: .82rem;
        min-width: 0;
        text-align: center;
    }

        /* O relógio do campo de hora ocupa quase metade da largura; clicar no campo já abre o seletor. */
        .ob-horario .form-control::-webkit-calendar-picker-indicator {
            display: none;
        }

.ob-horario-cabecalho {
    font-size: .7rem;
    color: #6c757d;
    margin-bottom: .15rem;
}

.ob-intervalo {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.ob-fechado {
    display: none;
    grid-column: 3 / span 3;
    color: #adb5bd;
    font-size: .78rem;
}

.ob-horario.fechado input[type="time"],
.ob-horario.fechado .ob-intervalo {
    display: none;
}

.ob-horario.fechado .ob-fechado {
    display: block;
}

.ob-horario.fechado .ob-horario-dia {
    color: #adb5bd;
}

.ob-link-linha {
    display: flex;
    gap: .5rem;
}

    .ob-link-linha .input-group {
        flex: 1;
        min-width: 0;
    }

@media (max-width: 575.98px) {
    .ob-linha-add {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

        .ob-linha-add .ob-col-nome,
        .ob-linha-add .ob-col-botao {
            grid-column: 1 / -1;
        }

    /* Celular: dia + chave numa linha, abre/fecha na seguinte e o intervalo embaixo. */
    .ob-horario {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-bottom: 1px solid #f1f3f5;
        padding-bottom: .4rem;
    }

        .ob-horario .form-switch {
            justify-self: end;
        }

        .ob-horario .ob-intervalo,
        .ob-horario .ob-fechado {
            grid-column: 1 / -1;
        }

        .ob-horario.fechado .ob-fechado {
            display: none;
        }

        .ob-horario .ob-intervalo::before {
            content: "Intervalo";
            font-size: .7rem;
            color: #6c757d;
            min-width: 3.6rem;
        }

        .ob-horario-dia::after {
            content: " · abre e fecha";
            font-size: .7rem;
            color: #adb5bd;
        }

        .ob-horario.fechado .ob-horario-dia::after {
            content: " · fechado";
        }

    .ob-horario-cabecalho {
        display: none;
    }

    .ob-link-linha {
        flex-direction: column;
    }

    .link-agendamento-campo .input-group-text {
        max-width: 50%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
