/* ============================================================
   MB GAMES — Login Page CSS (Light Theme - Branco / Cinza Claro)
   ============================================================ */

.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.login-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Branding ── */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.login-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(255, 102, 0, 0.25));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.04);
}

.login-company {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
}

.login-company span {
  color: var(--brand-orange);
}

.login-subtitle {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.login-clock {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: var(--brand-orange);
  letter-spacing: 2px;
  background: #fff7ed;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid #fed7aa;
  display: inline-block;
  margin-top: 0.25rem;
}

/* ── Card de Login ── */
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

/* ── Tabs ── */
.login-tabs {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.login-tab {
  flex: 1;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-tab.active {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 102, 0, 0.35);
}

/* ── Formulário ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.input-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover { color: var(--brand-orange); }

/* Opções de Login: Lembrar e Face Auto */
.login-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

/* ── Divisor OU ── */
.divider-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 1.25rem 0 1rem;
}

.divider-or::before, .divider-or::after {
  flex: 1; content: ''; height: 1px; background: var(--border-subtle);
}

/* ── Botão Face ID ── */
.btn-face-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 50px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-face-id svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand-orange);
  stroke-width: 2;
  fill: none;
}

.btn-face-id:hover {
  background: #fffaf5;
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ── Câmera Face ID ── */
.camera-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--brand-orange);
}

.camera-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.face-guide {
  width: 190px; height: 230px;
  border: 2px solid var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 102, 0, 0.5);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 102, 0, 0.3); }
  50%      { box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 102, 0, 0.7); }
}

.camera-status {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.login-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
