:root {
  --orange: #ff6500;
  --orange-light: #ff7d26;
  --orange-glow: rgba(255, 101, 0, 0.28);
  --ink: #16181f;
  --ink-secondary: #4b5160;
  --muted: #6e7583;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(255, 255, 255, 0.85);
  --input-bg: #f5f7fb;
  --input-border: #dfe4ee;
  --input-border-focus: #ff6500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background-color: #121316;
}

button,
input {
  font: inherit;
}

.login-page {
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(24px, 7vw, 120px) 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #17181c url('/assets/background.png') right center / cover no-repeat;
}

.video-background-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 15, 0.35) 0%,
    rgba(10, 11, 15, 0.18) 45%,
    rgba(10, 11, 15, 0.05) 75%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.login-main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0 20px;
}

.login-shell {
  position: relative;
  width: min(100%, 496px);
  padding: 24px 36px 26px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 28px 65px rgba(11, 13, 18, 0.28), 0 4px 16px rgba(11, 13, 18, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
}

/* Círculo moderno preto sobressaindo no topo do card */
.logo-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -76px;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}

.logo-badge-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #21242d 0%, #0e1014 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 0 1.5px rgba(255, 101, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.logo-badge-circle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(255, 101, 0, 0.65);
}

.login-logo {
  width: 86px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.intro {
  text-align: center;
  margin: 0 0 18px;
}

.eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  text-transform: uppercase;
  font: 700 9.5px/1.2 "Manrope", sans-serif;
  letter-spacing: 0.13em;
  color: var(--orange);
  background: rgba(255, 101, 0, 0.08);
  padding: 3.5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 101, 0, 0.18);
  margin-bottom: 7px;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255, 101, 0, 0.4);
}

h1 {
  margin: 0 0 5px;
  font: 700 clamp(20px, 2.2vw, 23px)/1.15 "Manrope", sans-serif;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 span {
  color: var(--orange);
}

.intro p {
  margin: 0 auto;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font: 600 11.5px/1 "Manrope", sans-serif;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.14);
  background: #ffffff;
}

.input-wrap > svg {
  width: 18px;
  margin: 0 12px 0 15px;
  flex: none;
  fill: none;
  stroke: #868d9c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.input-wrap:focus-within > svg {
  stroke: var(--orange);
}

.input-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: transparent;
  color: #181b22;
  font-size: 13.5px;
}

.input-wrap input::placeholder {
  color: #9ea5b3;
}

/* ANTI-BLUE AUTOFILL (Fundo claro sem azul padrão do navegador) */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus,
.input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #181b22 !important;
  caret-color: #181b22;
  transition: background-color 5000s ease-in-out 0s;
  border-radius: 0 10px 10px 0;
}

.input-wrap input:-moz-autofill,
.input-wrap input:-moz-autofill-preview {
  filter: none;
  background-color: #ffffff !important;
  color: #181b22 !important;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #868d9c;
  cursor: pointer;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #181b22;
}

.password-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  font-size: 12px;
}

.form-options a {
  color: #eb5700;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.form-options a:hover {
  color: #c74500;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555b68;
  cursor: pointer;
  user-select: none;
}

.remember input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #c9ced9;
  border-radius: 5px;
  background: #ffffff;
  transition: 0.2s;
}

.checkmark svg {
  width: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0.5);
  opacity: 0;
  transition: 0.2s;
}

.remember input:checked + .checkmark {
  background: var(--orange);
  border-color: var(--orange);
}

.remember input:checked + .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.remember input:focus-visible + .checkmark {
  outline: 2px solid rgba(255, 101, 0, 0.35);
  outline-offset: 2px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 2px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #fa5300, #ff7a1f);
  box-shadow: 0 10px 24px rgba(242, 83, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  font: 700 13.5px "Manrope", sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.submit-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.submit-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(242, 83, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.submit-button:hover svg {
  transform: translateX(3px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(255, 101, 0, 0.38);
  outline-offset: 3px;
}

.submit-button .spinner {
  width: 18px;
  height: 18px;
  animation: btnSpin 0.75s linear infinite;
}

@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 9px 12px;
  border: 1px solid #ffd5bd;
  border-radius: 10px;
  background: #fff7f2;
  color: #bd4703;
  font-size: 12px;
  line-height: 1.4;
}

.message svg {
  width: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7ebf2;
}

.trust-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-left: 1px solid #e7ebf2;
}

.trust-row > div:first-child {
  padding-left: 0;
  border: 0;
}

.trust-icon {
  color: var(--orange);
  font: 800 11px "Manrope", sans-serif;
}

.trust-row p {
  margin: 0;
  color: #727885;
  font-size: 9px;
  line-height: 1.3;
}

.trust-row b {
  color: #343943;
  font-weight: 700;
}

.login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font: 600 10px / 1.3 "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  margin-top: auto;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex: none;
}

@media (min-width: 1800px) {
  .login-page {
    padding-left: clamp(80px, 10vw, 200px);
    padding-right: clamp(80px, 10vw, 200px);
    background-position: right center;
  }
  .bg-video {
    object-position: right center;
  }
}

@media (max-width: 1024px) {
  .login-page {
    background-position: 80% center;
    padding-left: clamp(20px, 5vw, 60px);
    padding-right: clamp(20px, 5vw, 60px);
  }
  .bg-video {
    object-position: 80% center;
  }
  .login-footer {
    font-size: 9px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .login-page {
    padding: 20px 16px 20px;
    background-position: 75% center;
  }
  .bg-video {
    object-position: 75% center;
  }
  .backdrop {
    background: rgba(10, 11, 15, 0.45);
  }
  .login-main-content {
    align-items: flex-start;
    padding: 50px 0 20px;
  }
  .login-shell {
    width: min(100%, 496px);
    margin: 0 auto;
    padding: 20px 22px 22px;
    border-radius: 20px;
  }
  .logo-badge-wrap {
    margin-top: -68px;
  }
  .logo-badge-circle {
    width: 100px;
    height: 100px;
  }
  .login-logo {
    width: 78px;
  }
  .login-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
    font-size: 9px;
  }
  .footer-left,
  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .footer-line {
    width: 20px;
  }
}

@media (max-width: 400px) {
  .logo-badge-circle {
    width: 94px;
    height: 94px;
  }
  .login-logo {
    width: 72px;
  }
  .login-shell {
    padding: 18px 16px 18px;
  }
  .intro h1 {
    font-size: 19px;
  }
  .form-options {
    font-size: 11px;
  }
  .trust-row > div {
    gap: 5px;
    padding: 0 6px;
  }
  .login-footer {
    font-size: 8.5px;
  }
}

@media (max-height: 780px) and (min-width: 701px) {
  .login-page {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .login-main-content {
    padding-top: 48px;
    padding-bottom: 8px;
  }
  .login-shell {
    padding: 18px 28px 18px;
  }
  .logo-badge-wrap {
    margin-top: -66px;
    margin-bottom: 10px;
  }
  .logo-badge-circle {
    width: 98px;
    height: 98px;
  }
  .login-logo {
    width: 76px;
  }
  .intro {
    margin-bottom: 12px;
  }
  .intro h1 {
    font-size: 20px;
    margin-bottom: 3px;
  }
  .login-form {
    gap: 10px;
  }
  .input-wrap {
    height: 44px;
  }
  .submit-button {
    height: 46px;
  }
  .trust-row {
    margin-top: 14px;
    padding-top: 12px;
  }
}
