@font-face {
  font-family: "GoodTimes";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src:
    local("GoodTimesRg-Regular"),
    local("Good Times"),
    url("fonts/GOODTIMES.OTF") format("opentype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    local("Manrope Light"),
    local("Manrope-Light"),
    url("fonts/Manrope-Light.ttf") format("truetype");
}

:root {
  --enterprise-font-family: "GoodTimes", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --enterprise-font-family-secondary: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --enterprise-font-size-desc: 9px;
  --enterprise-font-size-desc-md: 10px;
  --enterprise-accent: #c41e3a;
  --enterprise-black: #000000;
  --enterprise-white: #ffffff;
  --enterprise-radius-sm: 2px;
  --enterprise-radius-md: 4px;
  --enterprise-spacing-md: 1rem;
  --enterprise-spacing-lg: 1.5rem;
  --enterprise-spacing-xl: 2rem;
  --enterprise-spacing-2xl: 2.5rem;
  --enterprise-divider-padding-before: var(--enterprise-spacing-xl);
  --enterprise-divider-padding-after: var(--enterprise-spacing-xl);
  --enterprise-divider-to-surface-gap: var(--enterprise-spacing-xl);
  --enterprise-glow-accent: 0 0 24px color-mix(in srgb, var(--enterprise-accent) 14%, transparent);
  --enterprise-card-shadow-default:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 2px 10px rgb(0 0 0 / 0.06),
    0 12px 32px -8px rgb(0 0 0 / 0.11),
    0 24px 56px -12px rgb(0 0 0 / 0.09);
  --enterprise-card-shadow-hover:
    0 2px 6px rgb(0 0 0 / 0.06),
    0 8px 22px rgb(0 0 0 / 0.09),
    0 18px 42px -6px rgb(0 0 0 / 0.14),
    0 0 28px color-mix(in srgb, var(--enterprise-accent) 10%, transparent);
  --enterprise-identity-descriptor-font-size: 9px;
  --enterprise-identity-descriptor-letter-spacing: 0.72em;
  --enterprise-identity-descriptor-word-spacing: 0.42em;
  --enterprise-identity-display-font-size: 26px;
  --enterprise-identity-display-letter-spacing: 0.96em;
  --enterprise-login-page-padding-x: 1rem;
  --enterprise-login-page-padding-y: 1.5rem;
  --enterprise-login-hero-gap: var(--enterprise-spacing-md);
  --enterprise-login-descriptor-gap: var(--enterprise-spacing-lg);
  --enterprise-login-hero-width: min(100%, 100%);
  --enterprise-login-divider-to-card-gap: var(--enterprise-divider-to-surface-gap);
  --enterprise-login-card-width: min(32.4rem, calc(100vw - 2rem));
  --enterprise-login-card-width-md: min(37.8rem, calc(100vw - 3rem));
  --enterprise-bg: var(--enterprise-white);
  --enterprise-fg: var(--enterprise-black);
  --enterprise-surface-field: #ffffff;
  --enterprise-border: rgb(0 0 0 / 0.1);
  --enterprise-border-strong: rgb(0 0 0 / 0.16);
  --enterprise-btn-neutral-fill: #d4d4d4;
  --enterprise-info-1: #4a4a4a;
  --enterprise-info-2: #5e5e5e;
  --enterprise-accent-solid-bg: #c41e3a;
  --enterprise-accent-solid-border: #000000;
  --enterprise-on-accent-solid: #ffffff;
}

@media (min-width: 640px) {
  :root {
    --enterprise-divider-padding-before: var(--enterprise-spacing-2xl);
    --enterprise-divider-padding-after: var(--enterprise-spacing-2xl);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  background: var(--enterprise-bg);
  color: var(--enterprise-fg);
  font-family: var(--enterprise-font-family);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.uppercase {
  text-transform: uppercase;
}

.ec-type-info-2 {
  font-family: var(--enterprise-font-family-secondary);
  font-size: var(--enterprise-font-size-desc);
  color: var(--enterprise-info-2);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.ec-type-desc {
  font-family: var(--enterprise-font-family-secondary);
  font-size: var(--enterprise-font-size-desc);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--enterprise-info-2);
}

.ec-type-accent {
  color: var(--enterprise-accent);
  font-weight: 700;
}

.ec-field-title {
  font-family: var(--enterprise-font-family);
  color: var(--enterprise-info-1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.3;
  font-size: 10px;
  margin: 0 0 0.35rem;
}

.ec-type-title-gloss {
  color: #000000;
  font-weight: 700;
  text-shadow:
    0 1px 0 rgb(255 255 255 / 0.55),
    0 2px 3px rgb(0 0 0 / 0.06),
    0 -1px 0 rgb(0 0 0 / 0.28),
    0 0 1px rgb(0 0 0 / 1);
  animation: ec-brand-gloss-light 4s ease-in-out infinite;
}

@keyframes ec-brand-gloss-light {
  0%,
  100% {
    text-shadow:
      0 1px 0 rgb(255 255 255 / 0.55),
      0 2px 3px rgb(0 0 0 / 0.06),
      0 0 1px rgb(0 0 0 / 0.35);
  }
  50% {
    text-shadow:
      0 1px 0 rgb(255 255 255 / 0.7),
      0 2px 4px rgb(0 0 0 / 0.08),
      0 0 2px rgb(0 0 0 / 0.45);
  }
}

@keyframes enterprise-red-divider-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.enterprise-red-divider {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
}

.enterprise-red-divider__track {
  position: relative;
  display: flex;
  height: 1px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}

.enterprise-red-divider__line {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--enterprise-accent) 20%, transparent) 18%,
    color-mix(in srgb, var(--enterprise-accent) 75%, transparent) 40%,
    var(--enterprise-accent) 50%,
    color-mix(in srgb, var(--enterprise-accent) 75%, transparent) 60%,
    color-mix(in srgb, var(--enterprise-accent) 20%, transparent) 82%,
    transparent 100%
  );
  animation: enterprise-red-divider-pulse 3s ease-in-out infinite;
}

.enterprise-red-divider__dot {
  position: relative;
  z-index: 1;
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--enterprise-accent);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--enterprise-accent) 85%, transparent),
    0 0 14px color-mix(in srgb, var(--enterprise-accent) 45%, transparent);
  animation: enterprise-red-divider-pulse 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.enterprise-divider-spacing {
  width: 100%;
  max-width: 100%;
  padding-top: var(--enterprise-divider-padding-before);
  padding-bottom: var(--enterprise-divider-padding-after);
}

.enterprise-login-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--enterprise-bg);
  color: var(--enterprise-fg);
  font-family: var(--enterprise-font-family);
}

.enterprise-login-composition {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: var(--enterprise-login-page-padding-y) var(--enterprise-login-page-padding-x);
}

/* Hero + card distribuídos na altura da tela */
.downloads-page .enterprise-login-composition {
  justify-content: flex-start;
  min-height: 100dvh;
  padding-top: clamp(3.5rem, 16vh, 7rem);
  padding-bottom: clamp(2rem, 6vh, 3rem);
}

.downloads-page .enterprise-login-descriptor {
  margin-bottom: 1rem;
}

.downloads-page .enterprise-login-hero {
  gap: 0.85rem;
  flex-shrink: 0;
}

.downloads-page .enterprise-divider-spacing {
  padding-top: clamp(1rem, 3vh, 1.75rem);
  padding-bottom: 0;
}

.downloads-page .enterprise-login-card-wrap {
  margin-top: clamp(2.75rem, 10vh, 5rem);
  flex-shrink: 0;
}

.enterprise-login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--enterprise-login-hero-gap);
  width: var(--enterprise-login-hero-width);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  text-align: center;
}

.enterprise-login-fit {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  overflow: visible;
}

.enterprise-login-descriptor {
  display: inline-block;
  width: max-content;
  max-width: none;
  margin: 0 0 var(--enterprise-login-descriptor-gap);
  white-space: nowrap;
  overflow: visible;
  font-family: var(--enterprise-font-family);
  font-size: var(--enterprise-identity-descriptor-font-size);
  font-weight: 700;
  color: var(--enterprise-info-1);
  letter-spacing: var(--enterprise-identity-descriptor-letter-spacing);
  word-spacing: var(--enterprise-identity-descriptor-word-spacing);
}

.enterprise-login-title {
  display: inline-block;
  width: max-content;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  overflow: visible;
  font-family: var(--enterprise-font-family);
  font-size: var(--enterprise-identity-display-font-size);
  line-height: 1.15;
  letter-spacing: var(--enterprise-identity-display-letter-spacing);
  word-spacing: 0.12em;
}

.enterprise-login-tagline-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.enterprise-login-tagline {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--enterprise-font-family);
  font-size: clamp(6px, 2.4vw, 11px);
  letter-spacing: clamp(0.1em, 0.22vw, 0.18em);
  line-height: 1.4;
}

.enterprise-login-divider-wrap {
  flex-shrink: 0;
  width: 100%;
}

.enterprise-login-card-wrap {
  width: var(--enterprise-login-card-width);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  margin-top: var(--enterprise-login-divider-to-card-gap);
}

@media (min-width: 768px) {
  .enterprise-login-card-wrap {
    width: var(--enterprise-login-card-width-md);
  }
}

.ec-enterprise-card {
  border: 1px solid color-mix(in srgb, var(--enterprise-accent) 24%, var(--enterprise-border));
  border-radius: var(--enterprise-radius-md);
  background: var(--enterprise-surface-field);
  box-shadow: var(--enterprise-card-shadow-default);
  padding: 1.5rem;
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.ec-enterprise-card:hover {
  border-color: color-mix(in srgb, var(--enterprise-accent) 18%, var(--enterprise-border-strong));
  box-shadow: var(--enterprise-card-shadow-hover);
}

.downloads-card-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-width: 0;
  margin-bottom: 1.5rem;
}

.downloads-card-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.downloads-card-logo img {
  width: 9rem;
  height: auto;
  display: block;
}

.downloads-card-divider {
  flex-shrink: 0;
  align-self: stretch;
  width: 3px;
  min-height: 5.5rem;
  background: var(--enterprise-accent);
  border-radius: 1px;
}

.downloads-card-lead {
  margin: 0;
  padding-top: 0.25rem;
  text-align: center;
  font-family: var(--enterprise-font-family-secondary);
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--enterprise-info-1);
}

.downloads-install-btn {
  flex-shrink: 0;
  min-height: 3.25rem;
  min-width: 11rem;
  padding: 0.75rem 2rem;
  font-size: 12px;
  letter-spacing: 0.28em;
  gap: 0.65rem;
}

.downloads-btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.ec-btn-neutral,
.ec-btn-accent-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1.5rem;
  border-radius: var(--enterprise-radius-sm);
  font-family: var(--enterprise-font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.ec-btn-neutral {
  border: 1px solid var(--enterprise-accent);
  background: var(--enterprise-btn-neutral-fill);
  color: var(--enterprise-field-fg, #0f0f0f);
}

.ec-btn-neutral:hover {
  background: color-mix(in srgb, var(--enterprise-btn-neutral-fill) 80%, var(--enterprise-accent));
}

.ec-btn-accent-solid {
  border: 1px solid var(--enterprise-accent-solid-border);
  background-color: var(--enterprise-accent-solid-bg);
  color: var(--enterprise-on-accent-solid);
}

.ec-btn-accent-solid:hover {
  filter: brightness(1.06);
}

@media (max-width: 479px) {
  .downloads-card-row {
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .downloads-card-divider {
    width: 100%;
    height: 3px;
    min-height: 0;
    align-self: auto;
  }

  .downloads-install-btn {
    width: 100%;
    max-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-type-title-gloss,
  .enterprise-red-divider__line,
  .enterprise-red-divider__dot {
    animation: none;
  }
}
