/* Estilos das telas de login, compartilhados pelo login por senha e pelo login via Google.
   Paleta do site oficial do CIAP: azul institucional #1a479e, azul escuro #02102d,
   texto #353e5d e cinza claro #f1f3f7. */

body,
body .wrapper,
body .content-wrapper {
  background: linear-gradient(135deg, #02102d 0%, #1a479e 55%, #353e5d 100%) !important;
}

/* A tela de login ocupa a largura inteira, sem as margens do menu lateral. */
body .content-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body .main-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  margin-top: auto !important;
}

.login-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
  margin: 0;
}

/* Saudação acima do card, sobre o degradê */
.login-welcome-title {
  width: 100%;
  max-width: 600px;
  margin: 0 0 28px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(2, 16, 45, 0.45);
}

/* Card de login. O AdminLTE é carregado depois deste arquivo, por isso o !important
   nas medidas do card. */
.login-box {
  width: 100% !important;
  max-width: 450px !important;
  margin: 0 auto !important;
}

.login-box-body {
  display: block !important;
  padding: 40px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(2, 16, 45, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

#login-logo {
  max-width: 280px;
  height: auto;
}

.login-box-msg {
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
  color: #353e5d !important;
}

/* Aviso de acesso restrito, em destaque no topo do card */
.login-aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid #edd9a3;
  border-radius: 8px;
  background: #fdf3d9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #8a5d00;
}

.login-aviso .fa {
  font-size: 16px;
}

/* Campos do formulário */
.login-box-body label {
  font-weight: 500;
  color: #353e5d !important;
  margin-bottom: 8px;
}

.login-box-body .form-control {
  height: 45px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px !important;
  padding: 10px 15px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #353e5d !important;
}

.login-box-body .form-control::placeholder {
  color: #6d758f !important;
}

.login-box-body .form-control:focus {
  border-color: #1a479e;
  box-shadow: 0 0 0 3px rgba(26, 71, 158, 0.15);
  background: #ffffff !important;
}

.login-box-body a {
  color: #1a479e !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.login-box-body a:hover {
  color: #02102d !important;
  text-decoration: underline;
}

/* Botão de entrar, tanto o do formulário quanto o do provedor de OAuth */
.login-box-body .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  height: 45px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px !important;
  background-color: #1a479e !important;
  border: none !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.login-box-body .btn-primary:hover,
.login-box-body .btn-primary:focus {
  background-color: #02102d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 16, 45, 0.4);
  text-decoration: none;
}

.login-box-body .btn-primary .fa {
  font-size: 18px;
}

/* Ajuste do container do botão */
.login-box-body .row {
  margin: 0 !important;
}

.login-box-body .col-xs-4,
.login-box-body .col-xs-offset-4 {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .login-welcome-title {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .login-box-body {
    padding: 30px 20px !important;
  }

  #login-logo {
    max-width: 220px;
  }
}
