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

.H74_Login {
  --ink: #0b1f33;
  --muted: #5a738c;
  --line: rgba(11, 31, 51, 0.12);
  --blue: #0a5390;
  --blue-deep: #063a66;
  --surface: rgba(255, 255, 255, 0.86);
  --input: #f4f8fc;
  --focus: rgba(10, 83, 144, 0.45);

  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(10, 83, 144, 0.22), transparent 55%),
    radial-gradient(700px 480px at 92% 110%, rgba(196, 164, 132, 0.18), transparent 50%),
    linear-gradient(165deg, #e8f1f8 0%, #f7fafc 42%, #eef4f9 100%);
  overflow-x: hidden;
  position: relative;
}

.H74_LoginAtmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.H74_LoginOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: H74_float 12s ease-in-out infinite;
}
.H74_LoginOrb--a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle at 35% 35%, rgba(10, 83, 144, 0.35), transparent 68%);
}
.H74_LoginOrb--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(196, 164, 132, 0.32), transparent 70%);
  animation-delay: -4s;
}
.H74_LoginGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 83, 144, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 83, 144, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes H74_float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}

.H74_LoginCard {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-width: 100%;
  padding: 36px 28px 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(7, 26, 46, 0.12),
    0 4px 16px rgba(7, 26, 46, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: H74_cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes H74_cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.H74_LoginBrand {
  margin-bottom: 26px;
  text-align: left;
}
.H74_LoginBrand img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.H74_LoginEyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.H74_LoginBrand h1 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.H74_LoginLead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 32ch;
}

.H74_LoginForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.H74_LoginField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.H74_LoginField label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.H74_LoginForm input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.H74_LoginForm input::placeholder {
  color: #8aa0b5;
}
.H74_LoginForm input:hover {
  border-color: rgba(10, 83, 144, 0.28);
}
.H74_LoginForm input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus);
  background: #fff;
}

/* Chrome/Edge autofill — evita “caixa azul” estourando o card */
.H74_LoginForm input:-webkit-autofill,
.H74_LoginForm input:-webkit-autofill:hover,
.H74_LoginForm input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--input) inset;
  transition: background-color 99999s ease-out;
}

.H74_LoginPassWrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.H74_LoginPassWrap input {
  padding-right: 48px;
}
.H74_LoginToggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.H74_LoginToggle:hover {
  color: var(--blue);
  background: rgba(10, 83, 144, 0.08);
}

.H74_LoginSubmit {
  margin-top: 6px;
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 83, 144, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.H74_LoginSubmit svg {
  transition: transform 0.2s ease;
}
.H74_LoginSubmit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 83, 144, 0.34);
}
.H74_LoginSubmit:hover:not(:disabled) svg {
  transform: translateX(3px);
}
.H74_LoginSubmit:active:not(:disabled) {
  transform: translateY(0);
}
.H74_LoginSubmit:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

.H74_LoginMsg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #8a2f1f;
  background: #fdece7;
  border: 1px solid #f5cfc4;
}

.H74_LoginBack {
  display: inline-flex;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.H74_LoginBack:hover {
  color: var(--blue);
}

@media (max-width: 420px) {
  .H74_LoginCard {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }
  .H74_LoginBrand h1 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .H74_LoginOrb,
  .H74_LoginCard {
    animation: none;
  }
}
