/* ============================= */
/* TELA LOGIN */
/* ============================= */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body.login-page {
  overflow: hidden;
}

.login-page {
  width: 100vw;
  height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: url('/assets/img/tela-login-intranet-nepam.png') no-repeat center center;
  background-size: cover;

  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 26, 0.68);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 46px 42px 54px;

  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

  text-align: center;
  color: #fff;
}

.login-container h1 {
  font-size: 28px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-container p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-unicamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  width: calc(100% + 84px);
  margin-left: -42px;

  box-sizing: border-box;

  min-height: 58px;
  padding: 10px 22px;

  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  color: #123b27;

  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);

  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.2px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: all 0.2s ease;
}

.btn-unicamp img {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.btn-unicamp:hover {
  background: rgba(255, 255, 255, 0.98);
  color: #0b2f1e;
  transform: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

/* Tela LOGIN LOCAL (auth/login_local.view) */

.login-local-container {
  padding-bottom: 28px;
}

.login-local-form {
  width: 100%;
  padding: 0 32px 24px;
  box-sizing: border-box;
}

.login-field {
  margin-bottom: 16px;
  text-align: left;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #123322;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-field input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.btn-login-local {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #f1f5f0;
  color: #174528;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-login-local:hover {
  background: #ffffff;
}

.login-voltar {
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.9;
}

.login-voltar:hover {
  opacity: 1;
  text-decoration: underline;
}

.login-alert {
  margin: 0 32px 18px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: left;
}

.login-alert-danger {
  background: #f8d7da;
  color: #842029;
}

.login-alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.login-alert-warning {
  background: #fff3cd;
  color: #664d03;
}
