/* Auth page - arreglado: header arriba, footer abajo, card centrada */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1419;
  background-image: url('../assets/images/fondo_web.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 24px 40px;
}
.auth-wrap { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-card {
  background: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 165, 32, 0.4);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f0c040, #d4a520);
  border-radius: 12px 12px 0 0;
}
.auth-logo {
  width: 72px; height: 72px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 2px solid #d4a520;
}
.auth-title {
  font-family: 'Cinzel', serif;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #d4a520;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.auth-sub {
  text-align: center;
  color: #a0a8b8;
  font-size: 12px;
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  color: #a0a8b8;
  font-size: 12px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid rgba(212, 165, 32, 0.2);
  border-radius: 6px;
  color: #e8eaf0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.field input::placeholder { color: #687080; }
.field input:focus {
  outline: none;
  border-color: #d4a520;
  box-shadow: 0 0 0 2px rgba(212, 165, 32, 0.1);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
  color: #a0a8b8;
  cursor: pointer;
}
.checkbox input { margin-top: 2px; width: auto; }
.checkbox a { color: #d4a520; text-decoration: none; }
.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #687080;
  font-size: 13px;
}
.auth-switch a { color: #d4a520; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.msg-box {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}
.msg-box.show { display: block; }
.msg-box.error { background: rgba(224, 57, 46, 0.1); border: 1px solid #e0392e; color: #ff5040; }
.msg-box.success { background: rgba(52, 199, 89, 0.1); border: 1px solid #34c759; color: #34c759; }
