/*===== Google Fonts Import Link =====*/
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;600;700;900&display=swap");

/*===== BoxIcon Import Link =====*/
@import url("https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css");

/*===== Cores Principais =====*/
:root {
  --azulEscuro: #007cb1;
  --azulClaro: #048fcb;
  --vermelhoEscuro: #830103;
  --vermelhoClaro: #a50306;
  --cinza: #333333;
}

/*===== Reset =====*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  list-style-type: none;
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif;
  scroll-behavior: smooth;
}

html,
body {
  overflow: hidden;
  background: #fff;
  width: 100%;
}

/*===== Tela de Login =====*/
.boxLogin {
  width: 100vw;
  height: 100vh;
  padding: 0 2rem;
  background-color: var(--azulEscuro);
}

.login {
  width: 95%;
  max-width: 460px;
  padding: 30px 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.boxLoginCenter {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  text-align: center;
  padding: 30px 30px;
  border-radius: 10px 10px;
  background-color: white;
}

.login img {
  height: 70px;
}

.login h2 {
  margin: 15px 0;
  color: var(--azulEscuro);
  text-transform: none;
  font-size: 1.5rem;
  font-weight: 600;
}

/*===== Inputs e Labels =====*/
.boxLoginCenter .input-div {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 25px 0;
}

.boxLoginCenter label {
  position: absolute;
  top: 50%;
  left: 35px;
  font-size: 1rem;
  color: var(--cinza);
  pointer-events: none;
  transform: translateY(-50%);
  transition: all 0.3s ease-out;
}

.boxLoginCenter input:focus + label,
.boxLoginCenter input:not(:placeholder-shown) + label {
  font-size: 13px;
  top: 5px;
  color: var(--azulEscuro);
}

.boxLoginCenter input[type="text"],
.boxLoginCenter input[type="password"] {
  width: 100%;
  height: 45px;
  font-size: 1rem;
  font-weight: 600;
  padding-left: 35px;
  background: none;
  border: none;
  border-bottom: 2px solid #d3d3d3;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.boxLoginCenter input:focus {
  border-color: var(--azulEscuro);
  padding-left: 40px;
  border-bottom: 2px solid var(--azulEscuro);
}

.boxLoginCenter input::placeholder {
  color: transparent;
}

.boxLoginCenter .i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--Cinza);
  transition: color 0.3s ease;
}

.boxLoginCenter input:focus ~ .i,
.boxLoginCenter input:not(:placeholder-shown) ~ .i {
  color: var(--azulEscuro);
}

/*===== Ícone de Mostrar Senha =====*/
.show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cinza);
}

.show-password i {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.show-password:hover i {
  color: var(--azulEscuro);
}

/*===== Botão de Ação =====*/
.boxLoginCenter .btn {
  width: 70%;
  height: 50px;
  border-radius: 25px;
  outline: none;
  border: none;
  background-color: var(--cinza);
  background-size: 200%;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  margin: 1.8rem 0;
  cursor: pointer;
  transition: background 0.4s ease;
}

.boxLoginCenter .btn:hover {
  background-image: linear-gradient(
    to right,
    #007cb1,
    rgb(12, 177, 247),
    #007cb1
  );
  background-position: right;
}

/*===== Links =====*/
.boxLoginCenter a {
  color: var(--cinza);
  font-size: 0.9rem;
  transition: 1s;
}

.boxLoginCenter a:hover {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azulEscuro);
}

.btn-lembrar {
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  margin-top: 15px; 
  gap: 5px; 
}

.btn-lembrar input[type="checkbox"] {
  margin: 0;
  width: auto;
  height: auto;
  transform: translateY(1px);
}

.btn-lembrar span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cinza);
  cursor: pointer; 
}

.boxLoginCenter .btn_criar_conta {
  padding: 5px;
}

.boxLoginCenter .btn_criar_conta a {
  color: var(--vermelhoClaro);
  bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 1s;
}

.boxLoginCenter .btn_criar_conta a:hover {
  font-size: 1rem;
  color: var(--azulEscuro);
}

/*===== Mensagem de erro =====*/
.erro_box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8d7da; 
  color: #721c24;
  border: 1px solid #f5c6cb; 
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: 10px;
  width: 100%;
}

.erro_box i {
  margin-right: 8px; 
  font-size: 1.2rem;
}

.erro_box:hover {
  background-color: #f5c6cb; 
  cursor: pointer;
}

.erro_box.hide {
  display: none;
}