:root {
    --primary-color: #638481;
    --primary-hover: #a8caba;
    --secondary-color: #838689;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-title: #015a4e;
    --background-color: #e1e6e3;
    --card-background: #ebe3aa;
    --border-color: #6b7280;
    --error-color: #ef4444;
    --bg-error-color: #eababa;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --largura-maxima: 25rem;

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body{
     background-color: var(--card-background); 
} 

.login-container{
    display: flex;  
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-box {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: var(--largura-maxima);
}

.logo {
    width: 120px;
    margin: 0 auto 1.5rem;
    display: block;
}

h1 {
      font-size: 2rem;
      color: var(--text-title);
      font-weight: 700;
      letter-spacing: 1px;
      text-align: center;
      margin-bottom: 3rem;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    }

.grpForm {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select {
    position: relative;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: 1rem;
}

.msg::after{
    content: attr(data-msg);
    position: absolute;
    top: 11.4rem;
    width: calc(var(--largura-maxima) - 2rem);
    height: 2.4rem;
    box-shadow: 0 2px 10px #ccc;
    border-radius: .2rem;
    left: 50%;
    transform: translate(-50%);
    box-sizing: border-box;
    padding: 0.50rem .15rem .15rem 2.5rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    background-repeat: no-repeat;
    background-position: left .5rem center;
    opacity: 1; 
    transition: opacity 0.5s ease-out;
}

.msgModal{
   margin-top: 3rem; 
   transition: margin-top 0.5s ease-out;
}

.msgModalSumindo{
   margin-top: 0; 
}

.msgModal::after{
    width: calc(var(--largura-maxima) - 3rem);
    top: 3.6rem;
}

.msgSumindo::after{
    opacity: 0;
}

.msg-E::after{
    border: 2px solid #f5c2c7;
    background-color: #f8d7da;    
    background-image: url("../img/erro32.png");
}

.msg-I::after{
    border: 2px solid #b6d4fe;
    background-color: #cfe2ff;   
    background-image: url("../img/info32.png");
}

.msg-A::after{
    border: 2px solid #ffecb5;
    background-color: #fff3cd;   
    background-image: url("../img/alerta32.png");
}

.msg-S::after{
    border: 2px solid #28a745;
    background-color: #e6ffee;   
    background-image: url("../img/ok32.png");
}

[type="email"] {
    background-image: url("../img/mail24.png");
    background-repeat: no-repeat;
    background-position: left .5rem center;
    padding-left: 2.5rem;
    background-color: transparent;
}

[type="password"] {
    background-image: url("../img/lock24.png");
    background-repeat: no-repeat;
    background-position: left .5rem center;
    padding-left: 2.5rem;
    background-color: transparent;
}

input::placeholder {
    color: var(--text-light);
}

.btn{
    width: 100%;
    padding: .6rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
    font-weight: 600;
}

.login {
    background-color: var(--primary-color);
}

.login:hover {
    background-color: var(--primary-hover);
}

.primeiroAcesso {
    background-color: transparent;
}

.primeiroAcesso:hover {
    background-color: var(--primary-hover);
}

.esqueciASenha {
    background-color: transparent;
}

.esqueciASenha:hover {
    background-color: var(--primary-hover);
}

.sys{
    width: 100%;
    padding: .2rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
}

.captionModal{
    position: relative;
    background: var(--primary-color);
    height: 2rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: bolder;
    padding-top: 0.3rem;
    color: var(--clr-btn-texto);
    border-top-left-radius: .4rem;
    border-top-right-radius: .4rem;
}

.closeModal {
    position: absolute;
    height: 32px;
    width: 32px;
    top: 0;
    right: 0; 
    background: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-top-right-radius: .4rem;
}

.mdPrimeiroAcesso, .mdEsqueciSenha{
    display: flex;  
    justify-content: center;
    align-items: center;
    padding: .5rem;
    width: 100%;
    max-width: 400px;
    background-color: var(--background-color);
    border: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) ;
}

.mdPrimeiroAcesso-box, .mdEsqueciSenha-box {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.rodapeModal{
    margin-top: .5rem;
    padding: .5rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}

.btnForm{
    width: 48%;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.3s;
    font-weight: 600;
}

.btnEnviar{
    background-color: var(--primary-color);
}

.btnEnviar:hover{
    background-color: var(--primary-hover);        
}

.btnFechar{
    background-color: transparent;
}

.btnFechar:hover{
    background-color: var(--primary-hover);    
}