/* ============================================
   LOGIN ADMIN — Splash + formulário (glass / sem filtro preto no fundo)
   ============================================ */

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

:root {
  --login-orange: #e67e22;
  --login-orange-hover: #cf7119;
  --login-orange-active: #c56a15;
  --login-accent-text: #ffffff;
  --login-text: #ffffff;
  --login-muted: rgba(255, 255, 255, 0.78);
  --login-glass-bg: rgba(255, 255, 255, 0.035);
  --login-glass-border: rgba(255, 255, 255, 0.16);
  --login-glass-highlight: rgba(255, 255, 255, 0.06);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.login-page {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--login-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* —— Fundo em tela cheia: só foto + blur (sem vinheta escura) —— */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.1);
  transform-origin: center center;
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

/* —— Camadas do conteúdo —— */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-step {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.login-step[hidden] {
  display: none !important;
}

/* ---------- Painel glass (legível sem filtro preto na foto) ---------- */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: clamp(26px, 5.5vw, 38px) clamp(22px, 4.5vw, 32px);
  border-radius: 28px;
  background: var(--login-glass-bg);
  backdrop-filter: blur(44px);
  -webkit-backdrop-filter: blur(44px);
  border: 1px solid var(--login-glass-border);
  box-shadow:
    inset 0 1px 0 var(--login-glass-highlight),
    0 24px 70px rgba(0, 0, 0, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.05);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-card {
    background: rgba(15, 23, 42, 0.38);
  }
}

.login-card--splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-card--form {
  position: relative;
  padding-top: 52px;
  max-width: 420px;
}

/* ---------- Splash ---------- */
.login-splash__inner {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.login-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
  text-align: center;
}

.login-accent-dot {
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: rgba(230, 126, 34, 0.22);
  box-shadow: none;
  margin-top: -6px;
}

.login-splash__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.login-brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.28));
}

.login-brand-logo--splash {
  max-width: min(220px, 68vw);
}

.login-tagline {
  font-size: clamp(1rem, 3.6vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--login-text);
  max-width: 28ch;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.login-tagline-sub {
  font-size: 0.86rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  max-width: 30ch;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.login-tagline-sub--form {
  font-size: 0.82rem;
  margin-top: -6px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
}

.login-micro {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

.login-splash__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 4px;
}

/* ---------- Botão pill (laranja chapado, sem brilho / gradiente) ---------- */
.login-pill-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  max-width: 360px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--login-accent-text);
  background: rgba(230, 126, 34, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.login-pill-btn:hover {
  background: rgba(207, 113, 25, 0.9);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.login-pill-btn:active {
  transform: scale(0.99);
  background: rgba(197, 106, 21, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.login-footlink {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.login-footlink:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Painel formulário ---------- */
.login-form-panel__inner {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.login-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.login-back:hover {
  background: rgba(255, 255, 255, 0.16);
}

.login-back:active {
  transform: scale(0.96);
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
  width: 100%;
  padding-bottom: 8px;
}

.login-brand-logo--form {
  max-width: min(140px, 42vw);
  margin-bottom: 4px;
}

.login-form-title {
  font-size: clamp(1.65rem, 5.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.login-tagline--dim {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.login-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  text-align: left;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.login-field__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.login-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.login-field:focus-within .login-input-row {
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

.login-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0 10px;
  outline: none;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.login-toggle-pass {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-toggle-pass:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-eye[hidden] {
  display: none !important;
}

.login-row--meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
  gap: 12px;
  flex-wrap: wrap;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-remember__box {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.login-remember__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px) scale(0.6);
  opacity: 0;
  transition: all 0.2s ease;
}

.login-remember__text {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.login-remember:hover .login-remember__box {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.login-remember input:focus-visible + .login-remember__box {
  outline: 2px solid rgba(230, 126, 34, 0.55);
  outline-offset: 2px;
}

.login-remember input:checked + .login-remember__box {
  border-color: var(--login-orange);
  background: linear-gradient(145deg, var(--login-orange), var(--login-orange-hover));
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.login-remember input:checked + .login-remember__box::after {
  opacity: 1;
  transform: rotate(-45deg) translate(0, -1px) scale(1);
}

.login-remember input:checked ~ .login-remember__text {
  color: #fff;
}

.login-remember input:disabled + .login-remember__box {
  opacity: 0.55;
}

.login-remember input:disabled ~ .login-remember__text {
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .login-remember__box,
  .login-remember__box::after {
    transition: none;
  }
}

.login-inline-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.login-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-pill-btn--submit {
  margin-top: 28px;
  max-width: none;
  position: relative;
  overflow: hidden;
  min-height: 54px;
}

.login-btn-loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
}

.login-btn-loader.is-active {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -11px;
  margin-top: -11px;
  animation: login-spin 0.65s linear infinite;
}

.login-pill-btn--submit:has(.login-btn-loader.is-active) .login-btn-text {
  opacity: 0;
}

.login-error {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  text-align: center;
  color: #fef2f2;
  background: rgba(185, 28, 28, 0.45);
  border: 1px solid rgba(254, 202, 202, 0.4);
}

.login-error:not([hidden]) {
  display: block;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-pill-btn,
  .login-pill-btn--submit {
    transition: none;
  }

  .login-btn-loader {
    animation: none;
  }
}

@media (max-width: 380px) {
  .login-form-title {
    letter-spacing: 0.05em;
  }

  .login-row--meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
