:root {
  --pastel-base: #fcd6bc;
  --pastel-light: #ffe4d2;
  --naranja: #ff9800;
  --naranja-grad: linear-gradient(90deg, #ffd59e 0%, #ffb36b 100%);
  --naranja-btn: linear-gradient(90deg, #ffb36b 0%, #ff9800 100%);
  --rojo: #e53935;
  --blanco: #fff;
  --negro: #222;
  --gris: #f5f5f5;
}

body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  /* background: var(--pastel-base); */
  position: relative;
  overflow: hidden;
}

/* Fondo con imagen y blur */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-bg::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('imagenes/fondo.jpg') center center / cover no-repeat;
  filter: blur(5px);
  /* Puedes añadir un overlay oscuro si quieres más contraste: */
  /* background: linear-gradient(0deg, rgba(0,0,0,0.35),rgba(0,0,0,0.35)), url('URL_AQUI') center center / cover no-repeat; */
}

.login-container,
.notification {
  position: relative;
  z-index: 1;
}

.login-container {
  background: var(--pastel-light);
  border: 2px solid #bda897;
  border-radius: 28px;
  box-shadow: 0 2px 24px #0001;
  max-width: 400px;
  width: 100%;
  margin: 40px 12px;
  padding: 36px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Añade un pequeño fondo semitransparente para mejorar contraste si lo deseas: */
  /* background: rgba(255,255,255,0.83); */
}

.login-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.logo-escudo {
  width: 60px;
  height: 66px;
  object-fit: contain;
  background: transparent;
}

.login-logo {
  background: var(--naranja-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  box-shadow: 0 2px 4px #ffb36b44;
}

.login-logo img {
  width: 34px;
  height: 34px;
}

h1 {
  color: var(--rojo);
  font-size: 2em;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-align: center;
}

.subtitle {
  font-size: 1.02em;
  color: #434343;
  text-align: center;
  margin-bottom: 24px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin: 12px 0 4px 0;
  font-weight: 500;
  color: var(--negro);
  font-size: 1em;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--blanco);
  border-radius: 10px;
  border: 1.5px solid #e7c9b0;
  margin-bottom: 8px;
  padding: 0 10px;
  position: relative;
}

.input-icon {
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.input-icon-right {
  margin-left: auto;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 8px;
  font-size: 1em;
  width: 100%;
  color: var(--negro);
}

.btn-main {
  width: 100%;
  margin: 16px 0 0 0;
  padding: 13px 0;
  border: none;
  border-radius: 12px;
  background: var(--naranja-btn);
  color: var(--negro);
  font-size: 1.12em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px #ffb36b33;
  transition: background 0.2s;
}

.btn-main:hover {
  filter: brightness(0.98);
  background: var(--naranja);
  color: var(--blanco);
}

.or {
  text-align: center;
  margin: 18px 0 8px 0;
  color: #434343;
  font-size: 0.97em;
}

.btn-roles {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.btn-role {
  border: none;
  background: var(--blanco);
  color: var(--negro);
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: 500;
  box-shadow: 0 2px 8px #ffe4d244;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-role:hover {
  background: var(--naranja);
  color: var(--blanco);
}

.notification {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--blanco);
  color: var(--negro);
  border: 1.2px solid #f8b38e;
  border-radius: 16px;
  box-shadow: 0 2px 16px #e0b08744;
  padding: 14px 28px 10px 22px;
  min-width: 240px;
  font-size: 1em;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

.notification.show {
  opacity: 1;
  pointer-events: auto;
}

.notification strong {
  font-weight: 600;
  color: var(--rojo);
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 480px) {
  .login-container {
    max-width: 96vw;
    padding: 20px 6vw 16px 6vw;
  }
  .login-logos {
    gap: 8px;
  }
  .logo-escudo {
    width: 50px;
    height: 55px;
  }
  .login-logo {
    width: 44px;
    height: 44px;
  }
  .login-logo img {
    width: 28px;
    height: 28px;
  }
  .notification {
    right: 0;
    left: 0;
    margin: auto;
    min-width: 180px;
    width: 85vw;
  }
}