/**
 * Auth Pro+ — login / recuperar / redefinir palavra-passe.
 * Identidade alinhada à página institucional (navy, coral, Outfit + DM Sans).
 */
:root {
  --auth-coral: #ff6b4a;
  --auth-coral-deep: #e85d3d;
  --auth-amber: #ffb547;
  --auth-blue: #2563eb;
  --auth-navy: #0c1222;
  --auth-indigo: #1e3a5f;
  --auth-slate: #475569;
  --auth-mist: #f8fafc;
  --auth-line: rgba(15, 23, 42, 0.08);
  --auth-radius: 1rem;
  --auth-font: 'DM Sans', system-ui, sans-serif;
  --auth-display: 'Outfit', 'DM Sans', sans-serif;
}

html.proplus-auth,
html.proplus-auth body {
  height: 100%;
}

body.proplus-auth-body {
  margin: 0;
  font-family: var(--auth-font);
  color: #1e293b;
  letter-spacing: -0.01em;
  background: var(--auth-navy);
  -webkit-font-smoothing: antialiased;
}

.proplus-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 28rem);
}

/* —— Painel de marca (plano visual full-bleed) —— */
.proplus-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(165deg, #0c1222 0%, #152238 42%, #1a365d 100%);
}

.proplus-auth-brand__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.proplus-auth-brand__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}

.proplus-auth-brand__slide.is-active {
  opacity: 1;
}

.proplus-auth-brand__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.72) 0%, rgba(8, 12, 24, 0.42) 38%, rgba(8, 12, 24, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 12, 24, 0.55) 0%, rgba(8, 12, 24, 0.2) 55%, rgba(8, 12, 24, 0.45) 100%);
}

.proplus-auth-brand__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: proplus-auth-sheen 14s ease-in-out infinite;
}

.proplus-auth-brand__orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  animation: proplus-auth-float 18s ease-in-out infinite;
}

.proplus-auth-brand__orb--a {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  right: -3rem;
  background: rgba(37, 99, 235, 0.45);
}

.proplus-auth-brand__orb--b {
  width: 14rem;
  height: 14rem;
  bottom: 10%;
  left: -4rem;
  background: rgba(255, 107, 74, 0.35);
  animation-delay: -6s;
}

.proplus-auth-brand__top,
.proplus-auth-brand__hero,
.proplus-auth-brand__foot {
  position: relative;
  z-index: 3;
}

.proplus-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.proplus-auth-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.proplus-auth-logo__word {
  margin: 0;
  font-family: var(--auth-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.proplus-auth-logo__word span:first-child {
  background: linear-gradient(135deg, #ff8a6e 0%, #ffc56d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.proplus-auth-logo__word span:last-child {
  color: #fff;
}

.proplus-auth-brand__hero {
  max-width: 30rem;
  padding: 2rem 0 3rem;
  animation: proplus-auth-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.proplus-auth-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.proplus-auth-brand__title {
  margin: 0 0 1rem;
  font-family: var(--auth-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 8px 28px rgba(0, 0, 0, 0.45);
}

.proplus-auth-brand__title em {
  font-style: normal;
  color: #ffd7a8;
}

.proplus-auth-brand__lead {
  margin: 0;
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.proplus-auth-brand__foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.proplus-auth-brand__foot-link {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.proplus-auth-brand__foot-link a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.proplus-auth-brand__foot-link a:hover {
  color: #fff;
  border-color: #fff;
}

.proplus-auth-brand__top .proplus-auth-logo__word {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

/* —— Painel do formulário —— */
.proplus-auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-mist);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  animation: proplus-auth-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.proplus-auth-panel__inner {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.proplus-auth-panel__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.85rem;
}

.proplus-auth-logo--mark {
  display: inline-flex;
  text-decoration: none;
}

.proplus-auth-logo__frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 2.1rem;
  min-width: 11.5rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(255, 107, 74, 0.28), rgba(37, 99, 235, 0.18) 55%, rgba(30, 58, 95, 0.12)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px -18px rgba(15, 23, 42, 0.28);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.proplus-auth-logo--mark:hover .proplus-auth-logo__frame {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 32px -16px rgba(15, 23, 42, 0.32);
}

.proplus-auth-panel__brand .proplus-auth-logo img {
  height: 2.55rem;
  width: auto;
  display: block;
  filter: none;
}

.proplus-auth-heading {
  margin: 0 0 0.35rem;
  font-family: var(--auth-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--auth-navy);
}

.proplus-auth-lead {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--auth-slate);
}

.proplus-auth-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.proplus-auth-form .form-control {
  border-radius: 0.75rem;
  border: 1px solid var(--auth-line);
  background: #fff;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proplus-auth-form .form-control:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.proplus-auth-form .password-input-wrapper .form-control {
  padding-right: 2.75rem;
}

.proplus-auth-form .password-toggle-btn {
  color: #94a3b8;
}

.proplus-auth-form .password-toggle-btn:hover {
  color: var(--auth-blue);
}

.proplus-auth-meta {
  display: flex;
  justify-content: flex-end;
  margin: -0.25rem 0 1.25rem;
}

.proplus-auth-meta a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--auth-blue);
  text-decoration: none;
}

.proplus-auth-meta a:hover {
  text-decoration: underline;
}

.proplus-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--auth-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--auth-coral) 0%, var(--auth-coral-deep) 100%);
  box-shadow: 0 10px 28px -8px rgba(255, 107, 74, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.proplus-auth-submit:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(255, 107, 74, 0.65);
}

.proplus-auth-submit:active {
  transform: translateY(0);
}

.proplus-auth-panel__foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-line);
  font-size: 0.8rem;
  color: var(--auth-slate);
  text-align: center;
}

.proplus-auth-panel__foot a {
  color: var(--auth-indigo);
  font-weight: 600;
  text-decoration: none;
}

.proplus-auth-panel__foot a:hover {
  color: var(--auth-blue);
}

@keyframes proplus-auth-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes proplus-auth-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes proplus-auth-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

@media (max-width: 991.98px) {
  .proplus-auth-shell {
    grid-template-columns: 1fr;
  }

  .proplus-auth-brand {
    display: none;
  }

  .proplus-auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
    background:
      radial-gradient(ellipse 80% 40% at 50% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
      var(--auth-mist);
  }
}

@media (prefers-reduced-motion: reduce) {
  .proplus-auth-brand__glow,
  .proplus-auth-brand__orb,
  .proplus-auth-brand__hero,
  .proplus-auth-panel {
    animation: none !important;
  }
  .proplus-auth-brand__slide {
    transition: none !important;
  }
}
