body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('../img/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px); /* ajusta al header */
}

.login-box {
  background: rgba(0, 0, 0, 0.87);
  padding: 38px 38px 28px 38px;
  border-radius: 16px;
  box-shadow: 0 8px 30px #000c;
  text-align: center;
  max-width: 400px;
  width: 98%;
  animation: loginFadeIn 0.6s;
  position: relative;
  z-index: 1;
}

@keyframes loginFadeIn {
  from { transform: translateY(-60px) scale(0.92); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.login-box h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  color: #ffd700;
  text-shadow: 0 3px 18px #444c, 0 1px 2px #000a;
  letter-spacing: 1px;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"] {
  width: 92%;
  padding: 13px 12px;
  margin: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  background: #232528;
  color: #ffe184;
  box-shadow: 0 1px 7px #0004 inset;
  outline: none;
  transition: box-shadow .19s, background .15s, color .13s;
  border-bottom: 2.2px solid #ffd70033;
}

.login-box input:focus {
  background: #191a1d;
  color: #fffbe5;
  box-shadow: 0 3px 19px #ffe18445, 0 1px 10px #0004 inset;
  border-bottom: 2.6px solid #ffd700;
}

.login-box button {
  width: 100%;
  padding: 12px 0;
  margin: 10px 0 12px 0;
  background: linear-gradient(90deg, #ffd700 0%, #e0c200 100%);
  border: none;
  border-radius: 7px;
  font-weight: bold;
  font-size: 18px;
  color: #151208;
  cursor: pointer;
  box-shadow: 0 2px 14px #ffd70033, 0 1px 8px #0005;
  letter-spacing: .5px;
  transition: background 0.18s, color 0.18s, box-shadow .18s;
}

.login-box button:hover {
  background: linear-gradient(90deg, #ffe184 0%, #ffd700 100%);
  color: #232528;
  box-shadow: 0 4px 24px #ffd70060, 0 1px 10px #0007;
}

.login-error {
  color: #ff4444;
  margin-bottom: 16px;
  font-weight: bold;
  letter-spacing: .5px;
  text-shadow: 0 1px 6px #0007;
}

.login-box a {
  color: #7ee287;
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  transition: color .17s;
  font-size: 1.02rem;
}

.login-box a:hover {
  color: #ffd700;
  text-shadow: 0 1px 6px #232;
}

@media (max-width: 520px) {
  .login-box {
    padding: 19px 5vw 12px 5vw;
    font-size: 1rem;
  }
  .login-box h2 { font-size: 1.27rem; }
}
