/* Login moderno — carregado só em login.php */
html.login-html,
html.login-html body.login-page {
  height: 100%;
}

html.login-html {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  --login-ink: #f2f6fb;
  --login-muted: #9aabbc;
  --login-accent: #f0b429;
  --login-glass: rgba(12, 18, 28, 0.72);
  --login-line: rgba(242, 246, 251, 0.12);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  color: var(--login-ink);
  font-family: Manrope, system-ui, sans-serif;
  background-color: #071018;
  background-image:
    linear-gradient(
      155deg,
      rgba(5, 10, 16, 0.92) 0%,
      rgba(8, 14, 22, 0.7) 42%,
      rgba(6, 11, 18, 0.94) 100%
    ),
    url('../fundo.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.login-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: login-orb-drift 14s ease-in-out infinite alternate;
}

.login-ambient__orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.55) 0%, transparent 70%);
}

.login-ambient__orb--b {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  right: -8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(61, 156, 240, 0.42) 0%, transparent 70%);
  animation-delay: -4s;
}

.login-ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

@keyframes login-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -22px) scale(1.08); }
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.login-hero {
  text-align: center;
  animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-hero__mark {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 1.35rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(240, 180, 41, 0.22), rgba(61, 156, 240, 0.12));
  border: 1px solid rgba(240, 180, 41, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: login-mark-float 5.5s ease-in-out infinite;
}

.login-hero__mark--image {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem;
}

.login-hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.9rem;
}

.login-hero__logo-text {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--login-accent);
}

.login-hero__brand {
  margin: 0;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.login-hero__tagline {
  margin: 0.65rem auto 0;
  max-width: 28rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--login-muted);
  line-height: 1.45;
}

.login-panel {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.55rem 1.4rem 1.45rem;
  border-radius: 1.35rem;
  background: var(--login-glass);
  border: 1px solid var(--login-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: login-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.login-panel__head {
  margin-bottom: 1.15rem;
}

.login-panel__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--login-accent);
}

.login-panel__title {
  margin: 0;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-panel__lead {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--login-muted);
  line-height: 1.4;
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-native-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c5d0dc;
}

.login-field__control {
  position: relative;
}

.login-field__ico {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7f91a5;
  font-size: 0.92rem;
  pointer-events: none;
}

.login-page .login-native-form input[type="email"],
.login-page .login-native-form input[type="password"],
.login-page .login-native-form input[type="text"] {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.7rem 0.95rem 0.7rem 2.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-page .login-native-form input::placeholder {
  color: #6f8094;
}

.login-page .login-native-form input:focus {
  outline: none;
  border-color: rgba(240, 180, 41, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.login-page .login-native-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0b429 0%, #e09a12 55%, #d8890a 100%);
  color: #1a1408;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-page .login-native-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(240, 180, 41, 0.36);
}

.login-page .login-native-submit:active {
  transform: translateY(1px);
}

.login-native-flash {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.login-native-flash i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.login-cadastro-foot {
  margin: 1.15rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--login-muted);
}

.login-cadastro-foot a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.login-cadastro-foot a:hover {
  color: var(--login-accent);
}

@media (min-width: 900px) {
  .login-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .login-hero {
    text-align: left;
    padding-right: 0.5rem;
  }

  .login-hero__mark,
  .login-hero__tagline {
    margin-left: 0;
  }

  .login-panel {
    margin: 0;
    width: 100%;
    padding: 1.85rem 1.7rem 1.65rem;
  }
}

@media (max-width: 640px) {
  .login-page {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .login-stage {
    width: 100%;
    padding-top: 0.35rem;
  }

  .login-hero__mark {
    width: 4.6rem;
    height: 4.6rem;
  }

  .login-hero__brand {
    font-size: 1.7rem;
  }

  .login-panel {
    max-width: none;
    width: 100%;
  }

  .login-page .login-native-form input[type="email"],
  .login-page .login-native-form input[type="password"],
  .login-page .login-native-form input[type="text"] {
    min-height: 3.35rem;
    font-size: 16px;
  }

  .login-page .login-native-submit {
    min-height: 3.35rem;
  }
}
