/* ================= RESET BASE ================= */
*,
*::before,
*::after{
    box-sizing:border-box;
}

/* ===== FIX IOS INPUT ===== */
input, textarea, select, button {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

* {
    -webkit-tap-highlight-color: transparent;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: none;
}

/* evita zoom no iOS */
input, textarea, select {
    font-size: 16px;
}

html{
    width:100%;
    height:100%;
}

/* ================= BODY ================= */
body {
    width: 100%;
    height: 100%;
    display: flex;
    background: var(--body);
    overflow: hidden;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* ================= WRAP ================= */
.wrap-login {
    width: 100%;
    height: 100%;
    display: flex;
    max-width: none;
    max-height: none;
    align-items: center;
    justify-content: center;
}

/* ================= CARD ================= */
.card-login {
    width: 100%;
    height: 100%;
    max-width: 44vh;
    max-height: 84vh;    
    display: flex;
    flex-direction: column;
    background: var(--corpreta);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: var(--padding-padrao-36);
    overflow: hidden;
    align-items: stretch;
    justify-content: space-between;
}

/* ================= LOGO ================= */
.logo-login{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-login img {
    width: 46%;
    max-width: 256px;
    min-width: 96px;
    height: auto;
}

/* ================= FORM ================= */
.form-login{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* ================= LABEL ================= */
.label-login{
    display:block;
    width:100%;
    margin-bottom:4px;
}

/* ================= GRUPO ================= */
.field-login{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:4px;
}

/* ================= INPUT ================= */
.input-login{
    width:100%;
    height: 100%;
    min-height:44px;
    max-height:44px;   
    padding: 2px 12px;
    display:flex;
    align-items:center;
    outline:none;
    border: 1px solid rgba(255,255,255,.5);
    background: var(--footer);
    border-radius: var(--radius_button);
    outline: none;
    box-sizing: border-box;
    transition: var(--transicao_pq);
}

.input-login:hover,
.input-login:hover{
    background:var(--corbranca);
}

.input-login:focus,
.input-login:focus{
    background:var(--corbranca);
    border-color:rgba(255,255,255,0.9);
}

/* ================= SENHA ================= */
.password-wrapper-login{
    position:relative;
    width:100%;
}

.password-wrapper-login .input-login{
    padding-right:44px;
}

.toggle-password-login{
    position:absolute;
    top:50%;
    right:10px;
    transform:translateY(-50%);
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.toggle-password-login img{
    width:18px;
    height:18px;
    opacity:0.85;
}

/* ================= BOTAO ================= */
.btn-login{
    width:100%;
    height: 100%;
    min-height:44px;
    max-height:44px;   
    padding: 2px 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    cursor:pointer;
    border-radius:var(--radius_button);
    border:1px solid var(--corerro01);
    background:var(--corvermelhahorus);
    transition:var(--transicao_pq);
}

.btn-login:hover{
    border:1px solid var(--header);
    background:var(--corvermelha);
    transition:var(--transicao_pq);   
}

.btn-login:active{
    background:var(--card);
    transition:var(--transicao_pq);    
}

/* ================= ERRO ================= */
.err-login{
    width:100%;
    height: 100%;
    min-height:44px;
    max-height:44px;   
    padding: 2px 12px; 
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 2px 12px;
    background:var(--corerro02);
    border:1px solid var(--corerro01);
    border-radius:var(--radius_button);
    line-height:1;
}

/* ================= FOOTER ================= */
.footer-login{
    width:100%;
    text-align:center;
}

/* ================= HONEYPOT ================= */
.hp-login{
    position:absolute;
    left:-9999px;
}

/* ================= ENVIAR SENHA ================= */
.status-solicitacao {
    margin: 18px 0 18px 0;
    padding: 12px;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    font-size: 14px;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.status-solicitacao.sucesso {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.status-solicitacao.erro {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}



/* ================= RESPONSIVO 1366px ================= */
@media (max-width:1366px){
    .card-login {
    max-width: 52vh;
    max-height: 92vh;
    padding: 12px 22px;       
    }
}

/* ================= RESPONSIVO 768px ================= */
@media (max-width: 768px) and (orientation: portrait) {

  .card-login {
    max-width: 44vh;
    max-height: 80vh;
    padding: 12px 22px;    
    }
}

/* ================= RESPONSIVO 360px ================= */
@media (max-width: 380px) and (orientation: portrait) {

    .input-login,
    .btn-login,
    .err-login{
    min-height:28px;
    max-height:28px;  
    }
    
    .logo-login img {
    width: 20%;
    max-width: 48px;
    min-width: 38px;
    height: auto;
    } 
}

/* =============== MOBILE HORIZONTAL ================= */
@media (orientation: landscape) and (max-height: 480px) {
    
    .card-login {
    max-width: 120vh;
    max-height: 80vh;
    padding: 4px 22px;   
    }
    
    .input-login,
    .btn-login,
    .err-login{
    min-height:22px;
    max-height:22px;
    radius: 6px;
    }
    
    .logo-login img {
    width: 20%;
    max-width: 38px;
    min-width: 28px;
    height: auto;
    }   
    
    .spacer-10 { 
    height: 10px !important; 
    width: 100% !important; 
    
    }
    .spacer-10 { 
    height:  5px !important; 
    width: 100% !important;
    }
    .spacer-04 { 
    height:  2px !important; 
    width: 100% !important; }
}