/**
 * Resolve Aqui — telas de autenticação
 * Alinhado ao site resolveaquiapp.com.br
 */

:root {
  --ra-orange: #FF6A00;
  --ra-orange-light: #FF8A1C;
  --ra-orange-dark: #E55F00;
  --ra-green: #8ED63B;
  --ra-green-dark: #6CBF2C;
  --ra-ink: #141414;
  --ra-muted: #6B7280;
  --ra-surface: #FFF9F4;
  --ra-card: #FFFFFF;
  /* --ra-font-display: "Outfit", system-ui, sans-serif;
  --ra-font-body: "DM Sans", system-ui, sans-serif; */
}

html, body {
  min-height: 100%;
}

body.ra-auth-body {
  margin: 0;
  font-family: var(--ra-font-body);
  background: var(--ra-surface);
  color: var(--ra-ink);
  -webkit-font-smoothing: antialiased;
}

.ra-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .ra-auth {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ——— Painel de marca ——— */
.ra-auth-brand {
  position: relative;
  display: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255, 106, 0, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(142, 214, 59, 0.22), transparent 50%),
    linear-gradient(160deg, #141414 0%, #1A120C 45%, #0F0F0F 100%);
  color: #fff;
  padding: 3.5rem 4rem;
}

@media (min-width: 992px) {
  .ra-auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center; /* um bloco só, sem “vazio” no meio */
  }
}

.ra-auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.ra-auth-brand__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.ra-auth-brand__glow--orange {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  left: -4rem;
  background: rgba(255, 106, 0, 0.45);
  animation: ra-float 12s ease-in-out infinite;
}

.ra-auth-brand__glow--green {
  width: 16rem;
  height: 16rem;
  right: -3rem;
  bottom: 10%;
  background: rgba(142, 214, 59, 0.28);
  animation: ra-float 14s ease-in-out infinite reverse;
}

@keyframes ra-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .ra-auth-brand__glow--orange,
  .ra-auth-brand__glow--green {
    animation: none;
  }
}

.ra-auth-brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

.ra-auth-brand__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ra-green);
}

.ra-auth-brand__title {
  font-family: var(--ra-font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: #ffffff !important; /* Metronic pinta h2 de primary */
}

.ra-auth-brand__title span {
  color: var(--ra-orange-light) !important;
}

.ra-auth-brand__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
  margin: 0 0 2rem;
}

.ra-auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}

.ra-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ra-auth-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ra-green);
  flex-shrink: 0;
}

.ra-auth-pill:nth-child(even) .ra-auth-pill__dot {
  background: var(--ra-orange-light);
}

.ra-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ra-auth-stat__value {
  font-family: var(--ra-font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.ra-auth-stat__label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

/* ——— Painel do formulário ——— */
.ra-auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 106, 0, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(142, 214, 59, 0.07), transparent 50%),
    var(--ra-surface);
}

.ra-auth-panel__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

@media (min-width: 576px) {
  .ra-auth-panel__inner {
    padding: 3rem 2rem 2rem;
  }
}

.ra-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.ra-auth-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.ra-auth-mobile-tagline {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ra-muted);
  margin: -1.25rem 0 2rem;
}

@media (min-width: 992px) {
  .ra-auth-mobile-tagline {
    display: none;
  }
}

.ra-auth-card {
  background: var(--ra-card);
  border-radius: 1.35rem;
  padding: 2rem 1.5rem;
  box-shadow:
    0 1px 2px rgba(20, 20, 20, 0.04),
    0 16px 48px rgba(255, 106, 0, 0.09);
  border: 1px solid rgba(255, 106, 0, 0.08);
}

@media (min-width: 576px) {
  .ra-auth-card {
    padding: 2.5rem 2.25rem;
  }
}

.ra-auth-card h1,
.ra-auth-card .ra-auth-heading {
  font-family: var(--ra-font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--ra-ink) !important;
  margin: 0 0 0.5rem;
}

.ra-auth-card .ra-auth-sub {
  color: var(--ra-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 2rem;
}

.ra-auth-card .ra-auth-sub a,
.ra-auth-card a.link-primary,
.ra-auth-card .link-primary {
  color: var(--ra-orange) !important;
  font-weight: 700;
  text-decoration: none;
}

.ra-auth-card .ra-auth-sub a:hover,
.ra-auth-card a.link-primary:hover,
.ra-auth-card .link-primary:hover {
  color: var(--ra-orange-dark) !important;
  text-decoration: underline;
}

/* Espaçamento interno do form */
.ra-auth-card .fv-row {
  margin-bottom: 1.35rem !important;
}

.ra-auth-card .fv-row:last-of-type {
  margin-bottom: 0 !important;
}

.ra-auth-card .form-label {
  display: block;
  font-family: var(--ra-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ra-ink);
  margin-bottom: 0.5rem;
}

.ra-auth-card .form-control,
.ra-auth-card .form-control-solid {
  background-color: #F7F5F2 !important;
  border: 1px solid #EDE8E2 !important;
  border-radius: 0.85rem !important;
  min-height: 3.15rem;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem;
  color: var(--ra-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ra-auth-card .form-control:focus,
.ra-auth-card .form-control-solid:focus {
  background-color: #fff !important;
  border-color: var(--ra-orange-light) !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18) !important;
}

.ra-auth-card .btn-primary {
  font-family: var(--ra-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: 0.9rem !important;
  min-height: 3.25rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--ra-orange) 0%, var(--ra-orange-light) 100%) !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ra-auth-card .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.35);
}

.ra-auth-card .btn-primary:active {
  transform: translateY(0);
}

.ra-auth-card .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: auto;
  padding: 0.25rem 0 0.5rem;
  margin: 0;
}

.ra-auth-card .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
}

.ra-auth-card .form-check-input:checked {
  background-color: var(--ra-orange) !important;
  border-color: var(--ra-orange) !important;
}

.ra-auth-card .form-check-label {
  color: var(--ra-muted);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
}

.ra-auth-actions {
  margin-top: 0.5rem;
}

.ra-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1.25rem;
  color: #9CA3AF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ra-auth-divider::before,
.ra-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.ra-auth-card .btn-light {
  border-radius: 0.9rem !important;
  min-height: 3.15rem;
  border: 1px solid #E5E7EB !important;
  background: #fff !important;
  font-weight: 600;
}

.ra-auth-card .btn-light:hover {
  border-color: var(--ra-orange) !important;
  color: var(--ra-orange) !important;
}

/* Social: remove margem excessiva do template Metronic */
.ra-auth-card .row.g-3.mb-9 {
  margin-bottom: 0 !important;
}

.ra-auth-footer {
  text-align: center;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--ra-muted);
}

.ra-auth-footer a {
  color: var(--ra-muted);
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.55rem;
  transition: color 0.15s ease;
}

.ra-auth-footer a:hover {
  color: var(--ra-orange);
}

.ra-auth-footer__brand {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: #9CA3AF;
}
