/* ROXPDV — login */
:root {
  --rx-orange: #ff6e41;
  --rx-orange-dark: #e85a2f;
  --rx-navy: #052336;
  --rx-ink: #0f172a;
  --rx-muted: #64748b;
  --rx-border: #e2e8f0;
  --rx-surface: #ffffff;
  --rx-peach: #fff3ed;
  --rx-font: "Poppins", system-ui, sans-serif;
}

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

html,
body.rx-login-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--rx-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.rx-login-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* —— Painel marca —— */
.rx-login-brand {
  position: relative;
  flex: 1 1 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.rx-login-brand-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(255, 110, 65, 0.28) 0%, transparent 62%),
    radial-gradient(ellipse 120% 80% at 80% 80%, rgba(255, 90, 45, 0.12) 0%, transparent 55%);
}

.rx-login-brand-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.rx-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  animation: rx-login-in 0.7s ease both;
}

/* Marca ROXPDV (SVG sem fundo) */
.rx-brand-mark {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(260px, 72vw);
}

.rx-brand-mark--on-dark {
  height: 40px;
}

.rx-login-logo {
  display: inline-block;
  margin-bottom: 36px;
}

.rx-login-logo .rx-brand-mark,
.rx-login-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(260px, 72vw);
}

.rx-login-brand h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rx-login-brand h1 em {
  font-style: normal;
  color: var(--rx-orange);
}

.rx-login-brand-lead {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.rx-login-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rx-login-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.rx-login-features i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 110, 65, 0.18);
  color: var(--rx-orange);
  font-size: 18px;
}

/* —— Formulário —— */
.rx-login-main {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(165deg, #fff 0%, var(--rx-peach) 100%);
}

.rx-login-card {
  width: 100%;
  max-width: 400px;
  animation: rx-login-in 0.7s 0.1s ease both;
}

.rx-login-card-head {
  margin-bottom: 28px;
}

.rx-login-card-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--rx-navy);
  letter-spacing: -0.02em;
}

.rx-login-card-head p {
  margin: 0;
  font-size: 14px;
  color: var(--rx-muted);
}

.rx-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.rx-login-alert i {
  font-size: 18px;
  margin-top: 1px;
}

.rx-login-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rx-login-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.rx-field {
  margin-bottom: 16px;
}

.rx-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-navy);
}

.rx-input-wrap {
  position: relative;
}

.rx-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--rx-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.rx-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1.5px solid var(--rx-border);
  border-radius: 12px;
  background: var(--rx-surface);
  font-family: inherit;
  font-size: 16px;
  color: var(--rx-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rx-input-wrap input::placeholder {
  color: #94a3b8;
}

.rx-input-wrap input:focus {
  outline: none;
  border-color: var(--rx-orange);
  box-shadow: 0 0 0 4px rgba(255, 110, 65, 0.15);
}

.rx-input-wrap:focus-within i {
  color: var(--rx-orange);
}

.rx-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.rx-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--rx-muted);
  user-select: none;
}

.rx-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rx-orange);
  cursor: pointer;
}

.rx-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-bottom: 24px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--rx-orange);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 0 var(--rx-orange-dark),
    0 12px 32px rgba(255, 110, 65, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.rx-btn-submit:hover {
  background: #ff784f;
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 var(--rx-orange-dark),
    0 16px 40px rgba(255, 110, 65, 0.45);
}

.rx-btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--rx-orange-dark), 0 8px 20px rgba(255, 110, 65, 0.3);
}

.rx-login-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--rx-border);
}

.rx-login-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.rx-login-links a:hover {
  color: var(--rx-orange);
}

.rx-login-links a.rx-link-cta {
  color: var(--rx-orange);
  font-weight: 700;
}

.rx-login-mobile-logo {
  display: none;
  margin-bottom: 24px;
  text-align: center;
}

.rx-login-mobile-logo .rx-brand-mark,
.rx-login-mobile-logo img {
  height: 34px;
  max-width: min(220px, 80vw);
}

@keyframes rx-login-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  html,
  body.rx-login-page {
    min-height: auto;
    height: auto;
    overflow-x: hidden;
    touch-action: manipulation;
  }

  .rx-login-shell {
    flex-direction: column;
    min-height: 0;
  }

  .rx-login-brand {
    flex: none;
    padding: max(20px, env(safe-area-inset-top, 0px)) 24px 20px;
  }

  .rx-login-brand-inner {
    max-width: none;
    text-align: center;
  }

  .rx-login-logo {
    display: none;
  }

  .rx-login-brand h1 {
    font-size: 22px;
  }

  .rx-login-brand-lead {
    margin-bottom: 0;
    font-size: 14px;
  }

  .rx-login-features {
    display: none;
  }

  .rx-login-main {
    flex: none;
    padding: 24px 20px max(24px, env(safe-area-inset-bottom, 0px));
    background: #fff;
  }

  .rx-login-mobile-logo {
    display: block;
  }
}

@media (max-width: 380px) {
  .rx-login-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Página 404 global (mesmo shell do login) —— */
body.rx-404-page .rx-404-code {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rx-orange);
}

body.rx-404-page .rx-404-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 110, 65, 0.12);
  color: var(--rx-orange);
  font-size: 28px;
}

body.rx-404-page .rx-login-card .rx-btn-submit {
  text-decoration: none;
}

body.rx-404-page .rx-login-card .rx-btn-submit i {
  font-size: 18px;
}
