
/* =========================================================
   FREDELIN TURISMO
   cadastro.css
   Cadastro de cliente
   Foto de perfil sem botão de seleção
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BODY
========================================================= */

body {
    font-family: "Poppins", sans-serif;

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #f4f7fb 0%,
            #eaf0f7 50%,
            #ffffff 100%
        );

    color: #1f2937;
}


/* =========================================================
   CONTAINER
========================================================= */

.login-container {
    width: 100%;
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


/* =========================================================
   CAIXA
========================================================= */

.login-box {
    width: 100%;
    max-width: 500px;

    padding: 35px 38px 32px;

    background: #ffffff;

    border-radius: 24px;

    border: 1px solid rgba(15, 23, 42, 0.06);

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   SELETOR DE IDIOMA
========================================================= */

.seletor-idioma {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-bottom: 22px;
}


.seletor-idioma label {
    font-size: 18px;

    line-height: 1;
}


.seletor-idioma select {
    min-width: 155px;

    height: 38px;

    padding: 0 12px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    color: #374151;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.seletor-idioma select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}



/* =========================================================
   FOTO DE PERFIL — CADASTRO
========================================================= */

.perfil-cadastro {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 25px;
}

.foto-perfil-container {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.foto-perfil {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   TÍTULO
========================================================= */

.login-box h1 {
    text-align: center;

    margin-bottom: 5px;

    color: #111827;

    font-size: 25px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   SUBTÍTULO
========================================================= */

.subtitulo-login {
    text-align: center;

    margin-bottom: 25px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

#formCadastro {
    width: 100%;
}


/* =========================================================
   CAMPOS
========================================================= */

.campo-login {
    width: 100%;

    margin-bottom: 17px;
}


.campo-login label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.campo-login input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d1d5db;

    border-radius: 11px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.campo-login input::placeholder {
    color: #9ca3af;
}


.campo-login input:hover {
    border-color: #9ca3af;
}


.campo-login input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.11);
}


/* =========================================================
   INPUT INVÁLIDO
========================================================= */

.campo-login input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}


/* =========================================================
   MENSAGEM
========================================================= */

.mensagem-login {
    width: 100%;

    margin: 5px 0 17px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


.mensagem-login[hidden] {
    display: none;
}


/* =========================================================
   MENSAGEM INFORMATIVA
========================================================= */

.mensagem-login.info {
    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1d4ed8;
}


/* =========================================================
   MENSAGEM SUCESSO
========================================================= */

.mensagem-login.sucesso {
    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;
}


/* =========================================================
   MENSAGEM ERRO
========================================================= */

.mensagem-login.erro {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


/* =========================================================
   BOTÃO CADASTRO
========================================================= */

#btnCadastro {
    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


#btnCadastro:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(37, 99, 235, 0.28);
}


#btnCadastro:active:not(:disabled) {
    transform: translateY(0);
}


#btnCadastro:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   LOGIN
========================================================= */

.login-link {
    margin-top: 23px;

    text-align: center;

    color: #6b7280;

    font-size: 13px;
}


.login-link a {
    margin-left: 4px;

    color: #2563eb;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.login-link a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}


/* =========================================================
   INPUT FILE
   OCULTO — NÃO APARECE NO CADASTRO
========================================================= */

#fotoPerfil {
    display: none;
}


/* =========================================================
   RESPONSIVO — TABLET
========================================================= */

@media (max-width: 600px) {

    .login-container {
        padding: 25px 15px;
    }


    .login-box {
        padding: 28px 23px 25px;

        border-radius: 20px;
    }


    .foto-perfil {
        width: 110px;
        height: 110px;
    }


    .login-box h1 {
        font-size: 22px;
    }

}


/* =========================================================
   RESPONSIVO — CELULAR
========================================================= */

@media (max-width: 420px) {

    .login-container {
        padding: 15px 10px;
    }


    .login-box {
        padding: 23px 17px;

        border-radius: 17px;
    }


    .seletor-idioma {
        justify-content: center;
    }


    .seletor-idioma select {
        min-width: 140px;
    }


    .foto-perfil {
        width: 100px;
        height: 100px;
    }


    .login-box h1 {
        font-size: 20px;
    }


    .subtitulo-login {
        font-size: 13px;
    }


    .campo-login input {
        height: 46px;
    }


    #btnCadastro {
        min-height: 48px;
    }

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;

        animation: none !important;
    }

}
