/* auth.css - Estilo compartido de las páginas públicas del panel:
   login.php, registro.php, recuperar.php, reset.php.
   Extraído del <style> original de login.php (no cambiar el look). */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #101318 url('dbgheader.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card {
  width: 100%;
  max-width: 380px;
  background: #14171c;
  border: 1px solid #2c333c;
  border-radius: 12px;
  padding: 28px 30px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.card.wide { max-width: 440px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.brand img {
  width: 42px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-main {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #e9edf4;
  white-space: nowrap;
}
.brand-sub {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  opacity: .72;
  color: #e9edf4;
  white-space: nowrap;
  margin-top: 3px;
}
h1 {
  font-size: 1rem;
  margin: 18px 0 4px;
  color: #aab4c2;
  font-weight: 600;
}
label { display: block; font-size: .82rem; color: #aab4c2; margin: 14px 0 4px; font-weight: 600; }
input, select {
  width: 100%;
  padding: 10px 12px;
  background: #21262f;
  color: #e9edf4;
  border: 1px solid #2c333c;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  color-scheme: dark;
}
select { cursor: pointer; }
input::placeholder { color: #7d8794; }
input:focus, select:focus { outline: 2px solid #6ea8fe; border-color: transparent; }
/* Campo password con ojito para revelar */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: #7d8794;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}
.pw-toggle:hover { color: #e9edf4; }
.pw-toggle svg { width: 18px; height: 18px; }
button.btn-main {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: #e9edf4;
  color: #14171c;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
button.btn-main:hover { background: #d3dae3; }
.err {
  background: #3a1d22;
  color: #ff9a94;
  border: 1px solid #7f2b33;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: .85rem;
  margin: 14px 0 0;
}
.ok {
  background: #16301f;
  color: #8ee6a8;
  border: 1px solid #2d7a45;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: .85rem;
  margin: 14px 0 0;
}
.foot { margin-top: 20px; text-align: center; font-size: .78rem; color: #7d8794; }
.foot a { color: #aab4c2; }
.links { margin-top: 18px; text-align: center; font-size: .82rem; }
.links a { color: #6ea8fe; text-decoration: none; display: block; padding: 4px 0; }
.links a:hover { text-decoration: underline; color: #9cc2ff; }
.hint { font-size: .72rem; color: #7d8794; margin-top: .35rem; }
