* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: #F5F2EA;
    color: #23332D;
    /* A tipografia vem do admin.css (--dp-font-sans), carregado por último no bundle. */
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
}

.login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 64px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #064F45 0%, #0A6B5D 100%);
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -210px;
    right: -180px;
    border: 1px solid rgba(97, 208, 187, 0.22);
    border-radius: 50%;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    bottom: -310px;
    left: -250px;
    border: 1px solid rgba(97, 208, 187, 0.14);
    border-radius: 50%;
}

.brand-top,
.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
}

.marca strong {
    color: #61D0BB;
}

.logo-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    color: #61D0BB;
}

.brand-tag {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.brand-content {
    max-width: 560px;
    margin: auto 0;
    padding: 70px 0;
}

.brand-subtitle {
    display: inline-block;
    margin-bottom: 18px;
    color: #61D0BB;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.brand-content h1 {
    max-width: 550px;
    margin: 0 0 22px;
    /* admin.css carrega depois e pinta todo heading de verde escuro (--dp-verde),
       que some no gradiente do painel; a cor precisa ser declarada aqui. */
    color: #FFFFFF;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.04;
}

.brand-content h1 span {
    color: #61D0BB;
}

.brand-content p {
    max-width: 455px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.65;
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #11816F;
    background-color: #11816F;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(17, 129, 111, 0.12);
}

.custom-control-label {
    color: #728079;
    font-size: 13px;
    cursor: pointer;
}

.btn-cidades {
    width: 100%;
    min-height: 48px;
    border: 1px dashed #11816F;
    border-radius: 12px;
    background: #F8FCFA;
    color: #075A4D;
    font-weight: 700;
}

.btn-cidades:hover {
    border-color: #075A4D;
    background: #EFF8F5;
    color: #075A4D;
}

.lista-cidades-encontradas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 230px;
    margin-top: 12px;
    overflow-y: auto;
}

.cidade-encontrada {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #E2DED4;
    border-radius: 10px;
    background: #FFFFFF;
    color: #52615A;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.cidade-encontrada:hover {
    border-color: #11816F;
    background: #F3FAF7;
    color: #075A4D;
}

.cidade-encontrada-adicionar {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #11816F;
    color: #FFFFFF;
    font-size: 19px;
    line-height: 1;
}

.cidades-selecionadas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cidade-selecionada {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    border: 1px solid #B9D8D1;
    border-radius: 8px;
    background: #EFF8F5;
    color: #075A4D;
    font-size: 14px;
    font-weight: 700;
}

.cidade-selecionada-remover {
    display: flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #11816F;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.cidade-selecionada-remover:hover {
    background: #075A4D;
}

.selecao-grid {
    display: flex;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.especialidade-opcao {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #DCD9D0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #52615A;
    cursor: pointer;
    transition: 0.2s ease;
}

.especialidade-opcao:hover {
    border-color: #11816F;
    background: #F8FCFA;
}

.especialidade-opcao input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.especialidade-opcao-check {
    display: flex;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #C9D1CC;
    border-radius: 6px;
    background: #FFFFFF;
    color: transparent;
    font-size: 13px;
    font-weight: 800;
}

.especialidade-opcao-nome {
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.especialidade-opcao.selecionada {
    border-color: #11816F;
    background: #EFF8F5;
    color: #075A4D;
}

.especialidade-opcao.selecionada .especialidade-opcao-check {
    border-color: #11816F;
    background: #11816F;
    color: #FFFFFF;
}

@media (max-width: 575.98px) {
    .selecao-grid {
        grid-template-columns: 1fr;
    }
}

.tipo-conta-opcoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tipo-conta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid #DCD9D0;
    border-radius: 16px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: 0.2s ease;
}

.tipo-conta-card:hover {
    border-color: #11816F;
    background: #F8FCFA;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(35, 51, 45, 0.08);
}

.tipo-conta-icone {
    display: flex;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #EFF8F5;
    color: #11816F;
    font-size: 24px;
    transition: 0.2s ease;
}

.tipo-conta-nome {
    color: #23332D;
    font-size: 16px;
    font-weight: 800;
}

.tipo-conta-descricao {
    color: #728079;
    font-size: 13px;
    line-height: 1.45;
}

.tipo-conta-card.selecionada {
    border-color: #11816F;
    background: #EFF8F5;
    box-shadow: 0 0 0 3px rgba(17, 129, 111, 0.12);
}

.tipo-conta-card.selecionada .tipo-conta-icone {
    background: #11816F;
    color: #FFFFFF;
}

.tipo-conta-card.selecionada .tipo-conta-nome {
    color: #075A4D;
}

.tipo-conta-erro {
    margin-top: 12px;
    color: #B84343;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .tipo-conta-opcoes {
        grid-template-columns: 1fr;
    }
}

.cadastro-medico-formulario {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cadastro-etapas {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.cadastro-etapa {
    flex: 1;
    text-align: center;
}

.cadastro-etapa-numero {
    width: 34px;
    height: 34px;
    margin-bottom: 5px;
    border: 1px solid #DCD9D0;
    border-radius: 50%;
    background: #FFFFFF;
    color: #728079;
    font-size: 12px;
    font-weight: 800;
}

.cadastro-etapa-numero:disabled {
    cursor: not-allowed;
    opacity: 0.65; }

.cadastro-etapa-numero.cadastro-etapa-atual, .cadastro-etapa-numero.cadastro-etapa-concluida {
    border-color: #11816F;
    background: #11816F;
    color: #FFFFFF;
}

.cadastro-medico-card {
    width: 100%;
    max-width: 650px;
    min-height: 720px;
    display: flex;
    flex-direction: column;
}

.cadastro-lista-fixa {
    height: 145px;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid #DCD9D0;
    border-radius: 12px;
    background: #FCFCFA; }

.cadastro-textarea {
    min-height: 130px;
    padding: 14px 16px;
    border: 1px solid #DCD9D0;
    border-radius: 12px;
    background: #FCFCFA;
    color: #23332D;
    resize: none; }

.cadastro-textarea:focus {
    border-color: #11816F;
    box-shadow: 0 0 0 0.2rem rgba(17, 129, 111, 0.12);
    outline: none;
}

.cadastro-resumo {
    padding: 14px;
    border: 1px solid #E2DED4;
    border-radius: 12px;
    background: #FCFCFA; color: #52615A;
    font-size: 13px;
}

.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: #F5F2EA;
}

.login-form-card {
    width: 100%;
    max-width: 580px;
    padding: 42px;
    border: 1px solid #E2DED4;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 22px 60px rgba(35, 51, 45, 0.10);
}

.login-form-header {
    margin-bottom: 34px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #11816F;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.login-form-header h2 {
    margin: 0 0 10px;
    color: #23332D;
    font-size: 32px;
    font-weight: 800;
}

.login-form-header p {
    margin: 0;
    color: #728079;
    font-size: 14px;
    line-height: 1.5;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #23332D;
    font-size: 14px;
    font-weight: 700;
}

.input-group-login {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    transform: translateY(-50%);
    color: #11816F;
    font-size: 15px;
    pointer-events: none;
}

/* O padding-left de 46px do .form-control abaixo reserva a calha do ícone;
   sem o ícone o campo fica com um vão vazio à esquerda. */
.input-icon.material-icons-round {
    font-size: 20px;
}

.input-group-login .form-control {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid #DCD9D0;
    border-radius: 12px;
    background: #FCFCFA;
    color: #23332D;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.input-group-login .form-control:focus {
    border-color: #11816F;
    box-shadow: 0 0 0 0.2rem rgba(17, 129, 111, 0.12);
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.alert-login {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(184, 67, 67, 0.22);
    border-radius: 10px;
    background: rgba(184, 67, 67, 0.08);
    color: #B84343;
    font-size: 13px;
}

.btn-entrar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: #075A4D;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-entrar:hover {
    transform: translateY(-1px);
    background: #11816F;
    box-shadow: 0 12px 20px rgba(7, 90, 77, 0.18);
}

.btn-entrar:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

@media (max-width: 991.98px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 300px;
        padding: 32px 28px;
    }

    .brand-content {
        margin: 0;
        padding: 50px 0 15px;
    }

    .brand-content h1 {
        max-width: 620px;
        font-size: 38px;
    }

    .brand-footer {
        display: none;
    }

    .login-form-area {
        padding: 34px 20px;
    }
}

@media (max-width: 575.98px) {
    .brand-tag {
        display: none;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .brand-content p {
        font-size: 14px;
    }

    .login-form-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .cadastro-medico-card { 
        width: 100%; 
        max-width: 650px; 
        min-height: 720px; 
        display: flex; 
        flex-direction: column; 
    }
    
    .cadastro-medico-card { 
        min-height: auto; 
    } 
    
    .cadastro-conteudo-etapa, .cadastro-conteudo-etapa > div { 
        min-height: auto; 
    } 
    
    .cadastro-etapa small { 
        display: none;
    }
}

.foto-de-perfil-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--dp-border);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--dp-teal-soft) 0%, var(--dp-surface) 100%);
}

.foto-de-perfil-card__conteudo { min-width: 0; }
.foto-de-perfil-card__texto { display: flex; gap: 1rem; align-items: flex-start; }
.foto-de-perfil-card__icone { display: grid; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .875rem; color: var(--dp-teal); background: var(--dp-teal-soft); }
.foto-de-perfil-card__titulo { margin: 0 0 .25rem; color: var(--dp-verde); font-size: 1.05rem; font-weight: 700; }
.foto-de-perfil-card__descricao { margin: 0; color: var(--dp-text-2); }
.foto-de-perfil-card__ajuda { display: inline-block; margin-top: .45rem; color: var(--dp-text-3); font-size: .8rem; }
.foto-de-perfil-card__botao { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1rem; }
.foto-de-perfil-card__previa { display: grid; width: 7.5rem; height: 7.5rem; place-items: center; overflow: hidden; border: 4px solid var(--dp-surface); border-radius: 1rem; background: var(--dp-teal-soft); box-shadow: 0 .5rem 1.5rem rgba(15, 138, 118, .13); }
.foto-de-perfil-card__imagem { width: 100%; height: 100%; object-fit: cover; }
.foto-de-perfil-card__placeholder { color: var(--dp-menta); font-size: 3.5rem; }

@media (max-width: 575.98px) {
    .foto-de-perfil-card { grid-template-columns: 1fr; }
    .foto-de-perfil-card__previa { grid-row: 1; width: 6rem; height: 6rem; }
}
.documento-upload-card {
    display: flex;
    gap: .75rem;
    align-items: center;
    width: 100%;
    min-height: 5.5rem;
    padding: .875rem 1rem;
    border: 1px dashed var(--dp-teal);
    border-radius: .875rem;
    background: var(--dp-teal-soft);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.documento-upload-card:hover {
    border-color: var(--dp-teal-hover);
    box-shadow: 0 .25rem .75rem rgba(15, 138, 118, .12);
}

.documento-upload-card__icone {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: .75rem;
    color: var(--dp-teal);
    background: var(--dp-surface);
}

.documento-upload-card__conteudo {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: var(--dp-verde);
}

.documento-upload-card__conteudo strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.documento-upload-card__conteudo small { color: var(--dp-text-2); }
.documento-upload-card__acao { pointer-events: none; }
