*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI', sans-serif;
}

body{
background:linear-gradient(135deg, #145357, #005f46);
display:flex;
align-items:center;
justify-content:center;
margin: 30px 0;
}

/* CARD LOGIN */

.login-container{
background:white;
padding:50px 40px;
border-radius:14px;
width:380px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
text-align:center;
}

.forgot_btn{
    position: absolute;
    top: 50px;
    margin-left: -20px;
    font-size:21px;
    font-weight: 500;
    color:#fff;
    cursor:pointer;
    background-color: #145357;
    border: 1px solid #14525743;
    border-radius: 25px;
    padding: 3px 9px 5px 9px;
    transition: 0.3s;
}

.forgot_btn:hover{
    background-color:#145257d3;
}

.forgot_btn a{
    color: inherit;
    text-decoration: none;
}

/* LOGO */

.logo{
margin-bottom:25px;
}

.logo img{
height:70px;
}

.logo h5{
margin-top:6px;
color:#145357;
font-weight:600;
}

h1 {
    color: #145357;
    margin: 10px 0 10px 0;
}

.subtitle{
font-size:14px;
color:#777;
margin-bottom:30px;
}

/* INPUTS */

.form-group{
margin-bottom:18px;
text-align:left;
}

.form-group label{
font-size:14px;
font-weight:600;
color:#145357;
}

.form-group input{
width:100%;
padding:12px;
margin-top:5px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
transition:0.2s;
}

.form-group input:focus{
outline:none;
border-color:#145357;
}

.msg-rec{
    margin: 20px 0;
    padding:12px;
    background:#d5ebef;
    border-radius:8px;
    font-size:14px;
}

.btn-visivel{
    position: absolute;
    margin-left: -35px;
    margin-top: 14px;
    cursor: pointer;
    font-size: 18px;
}

.senha-pattern {
    text-align: center;
    margin: 3px 0 16px 0;
}

.text-muted {
    font-size: 12px;
}

.text-muted ul{
    display: flex;
    flex-direction: column;
    font-size: 13px;
    margin-left: 26%;
}

.text-muted li{
    text-align: left;
}

/* BOTÃO */

#auth-btn{
width:100%;
padding:12px;
margin-top:10px;
background:#145357;
color:white;
border:none;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

#auth-btn:hover{
background:#0f4144;
}

.btn-text {
    font-size:16px;
    font-weight:600;
    transition: opacity .3s ease;
}

.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    -webkit-animation: spin .7s linear infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.loader-text {
    display: none;
}

#auth-btn.loading {
    background-color: #195047;
    cursor: progress;
}

#auth-btn.loading .btn-text {
    display: none;
}

#auth-btn.loading .loader {
    display: inline-block;
}

#auth-btn.loading .loader-text {
    display: grid;
    margin-top: 3px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

/* ESQUECI SENHA */

.sucesso {
    margin-top: 20px;
    padding: 12px;
    background: #e7f7ef;
    color: #1e9e5a;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.erro {
    margin-top: 20px;
    padding: 12px;
    background: #ffe5e5;
    color: #d34a4a;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.forgot{
margin-top:15px;
font-size:13px;
color:#777;
cursor:pointer;
}

.forgot:hover{
text-decoration:underline;
}

.forgot a{
  color: inherit;
  text-decoration: none;
}

.ok{
    margin-top:5px;
    margin-bottom:10px;
    font-size:18px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
    background-color: #f0f0f0;
    color: #1e9e5a;
    padding: 3px 6px;
}

.detalhe{
margin-top:25px;
font-size:12px;
color:#aaa;
}

.required{
    color: red;
}

.form-check{
    margin: 10px 0;
}

.form-check label{
    font-size:14px;
    
}

.form-check input{
    border:1px solid #ddd;
    margin-right: 4px;
    transition:0.2s;
    cursor: pointer;
}

.form-check input:focus{
    border-color:#145357;
}

.termo-btn{
    background: none;
    border: none;
    color:#145357;
    cursor: pointer;
    text-decoration-line: underline;
}

.termo-btn:hover{
    color:#00aede;
}


/* Fundo escurecido */
.termo-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 999;
    animation: fadeIn 0.25s ease;
}

/* Caixa do modal */
.termo-modal {
    width: min(650px, 92vw);
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.10);
    animation: modalIn .3s ease;
    text-align: center;
    z-index: 9999;
}

/* Título */
.termo-modal h2 {
    margin: 0 0 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #145357;
}

/* Conteúdo */
.termo-conteudo {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-height: 65vh;
    overflow-y: auto;
    text-align:left;
}

.termo-midia {
    margin: 0 5% 12px 5%;
}

/* Botão */
.fecha-termo {
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: #145357;
    transition: all .2s ease;
}

.fecha-termo:hover {
    transform: translateY(-1px);
    background: #1d8b93;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}

.fecha-termo:active {
    transform: translateY(0);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



@media screen and (max-width: 1020px){

    .login-container{
        padding:50px 25px;
        border-radius:14px;
        width:330px;
    }
    
    .forgot_btn{
        margin-left: -8px;
    }

    .termo-modal h2 {
        font-size: 1.4rem;
    }

    .termo-conteudo {
        max-height: 55vh;
    }
}