@font-face {
  font-family: 'Gotham-Book';
  src: url('../fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400;
}

@font-face {
  font-family: 'Gotham-Bold';
  src: url('../fonts/Gotham-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* ─── Design Tokens ─── */
:root {
  --card-bg: #ffffff;
  --card-shadow: 0 0 1rem 0.25rem rgba(0, 244, 156, 0.3);
  --text-body: #444444;
  --text-strong: #1200c4;
  --btn-bg: #00f49c;
  --btn-text: #0d0d5e;
  --btn-hover: #00d988;
  --toggle-bg: rgba(255, 255, 255, 0.85);
  --toggle-color: #1200c4;
  --bg-image: url('../images/bg-desktop-lightmode.png');
  --bva-color: #1200c4;
}

html[data-theme='dark'] {
  --card-bg: #2929e8;
  --card-shadow: 0 0 1rem 0.25rem rgba(255, 255, 255, 0.15);
  --text-body: #ffffff;
  --text-strong: #ffffff;
  --btn-bg: #00f49c;
  --btn-text: #0d0d5e;
  --btn-hover: #00d988;
  --toggle-bg: rgba(13, 13, 94, 0.85);
  --toggle-color: #ffffff;
  --bg-image: url('../images/bg-desktop-darkmode.png');
  --bva-color: #00f49c;
}

/* ─── Reset / Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Gotham-Book', sans-serif;
}

/* ─── Theme Toggle ─── */
#theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--toggle-bg);
  color: var(--toggle-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.18);
  transition:
    background 0.3s,
    color 0.3s;
}

/* ─── Page Background ─── */
.page-bg {
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Card ─── */
.card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--card-shadow), 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

/* ─── Logo ─── */
.logo-wrapper {
  position: relative;
  width: 100%;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.bem-vindo-a {
  position: absolute;
  top: 14%;
  left: 41.5%;
  font-family: 'Gotham-Book', sans-serif;
  font-size: 1.3125rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
  color: var(--bva-color);
  pointer-events: none;
}

/* ─── Description ─── */
.description {
  font-family: 'Gotham-Book', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
  text-align: center;
  transition: color 0.3s;
}

.description strong {
  font-family: 'Gotham-Bold', sans-serif;
  font-weight: 700;
  color: var(--text-strong);
  transition: color 0.3s;
}

/* ─── Button ─── */
.btn-acessar {
  display: block;
  width: 100%;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 3.125rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Gotham-Bold', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn-acessar:hover {
  background: var(--btn-hover);
}

.btn-acessar:active {
  transform: scale(0.98);
}

/* ─── Tablet (≤ 64rem / 1024px) ─── */
@media (max-width: 64rem) {
  :root {
    --bg-image: url('../images/bg-tablet-lightmode.png');
  }

  html[data-theme='dark'] {
    --bg-image: url('../images/bg-tablet-darkmode.png');
  }

  .card {
    max-width: 30rem;
    padding: 2.25rem 2rem;
  }

  .bem-vindo-a {
    font-size: 1.3125rem;
  }
}

/* ─── Mobile (≤ 27.5rem / 440px) ─── */
@media (max-width: 27.5rem) {
  :root {
    --bg-image: url('../images/bg-mobile-lightmode.png');
  }

  html[data-theme='dark'] {
    --bg-image: url('../images/bg-mobile-darkmode.png');
  }

  .page-bg {
    align-items: flex-end;
  }

  .card {
    max-width: 100%;
    width: 100%;
    border-radius: 2.5rem 2.5rem 0 0;
    padding: 2rem 1.75rem max(2.5rem, env(safe-area-inset-bottom));
    gap: 1.125rem;
    box-shadow: var(--card-shadow), 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.12);
  }

  .description {
    font-size: 0.95rem;
  }

  .bem-vindo-a {
    font-size: calc(6.4vw - 0.225rem);
  }
}
