:root {
  --auth-orange: #ff5a1f;
  --auth-orange-deep: #e23a0c;
  --auth-ink: #101010;
  --auth-muted: #c8c8c8;
  --auth-panel: rgba(12, 12, 12, 0.55);
  --auth-error: #c62828;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.auth-body {
  min-height: 100%;
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  color: #fff;
  background: #0b0b0b;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 2rem;
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.82) 100%),
    url("/images/auth-bg.jpg") center / cover no-repeat;
  z-index: 0;
}

/* Halftone / dotted overlay like the reference */
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.8px, transparent 0.9px);
  background-size: 4px 4px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.auth-error-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--auth-error);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: center;
  font-family: "Barlow", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.auth-error-ribbon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-error-ribbon li {
  color: #fff !important;
  font-weight: 600;
}

.auth-error-ribbon .validation-summary-errors {
  color: #fff !important;
}

.auth-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
  text-decoration: none;
  color: inherit;
}

.auth-brand-title {
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(3.2rem, 12vw, 4.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff7a3d 0%, #ff4d12 55%, #d62800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.auth-brand-subtitle {
  display: block;
  margin-top: 0.2rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Funciona también si el form aún no tiene class="auth-form" */
.auth-panel > form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-field {
  margin: 0;
}

.auth-field label {
  display: none;
}

.auth-input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 4px;
  padding: 0 0.95rem;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  background: #fff;
  outline: none;
}

.auth-input::placeholder {
  color: #8a8a8a;
}

.auth-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.45);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 4px;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff6a2b 0%, #ff4d12 50%, #e23a0c 100%);
  margin-top: 0.35rem;
}

.auth-btn-primary:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.auth-btn-secondary {
  color: #fff;
  background: #2a2a2a;
}

.auth-btn-secondary:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.12);
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  color: var(--auth-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.auth-link:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.35rem;
  color: #d0d0d0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.auth-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  text-align: center;
  color: #bdbdbd;
  font-size: 0.78rem;
}

.auth-success {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  background: rgba(20, 120, 60, 0.9);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.auth-success a {
  color: #fff;
  text-decoration: underline;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ddd;
  font-size: 0.9rem;
  margin: 0.15rem 0 0.35rem;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 4.25rem 1rem 1.5rem;
  }

  .auth-brand-title {
    font-size: 3.1rem;
  }
}
