/* ============ LOGIN — EmpireAds (idêntico ao Dash Performance) ============ */
:root {
  --bg: #111214;
  --yellow: #ffcf24;
  font-size: 16px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #f3f3f4;
  font-family: "Rubik", "Poppins", sans-serif;
}

/* ---------- TELA DE LOGIN ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background-color: #121212;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 12px);
  z-index: 200;
}

.login-screen.is-hidden {
  display: none;
}

.login-card {
  position: relative;
  width: min(100%, 420px);
  padding: 36px 36px 32px;
  background: #ffffff;
  border: none;
  border-top: 6px solid #f5c518;
  border-radius: 6px;
  box-shadow: 18px 20px 0 rgba(245, 197, 24, 0.14), 0 28px 70px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1;
}

.login-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.login-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #111111;
}

.login-kicker {
  display: block;
  color: #d18d00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 0;
  color: #151515;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.login-description {
  margin: 10px 0 26px;
  color: #716d66;
  font-size: 0.85rem;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 7px;
}

.login-form label {
  color: #716d66;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-top: 6px;
}

.login-form input {
  width: 100%;
  border: 1px solid #d9d1c5;
  border-radius: 9px;
  background: #ffffff;
  color: #151515;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.login-form input:focus {
  background: #ffffff;
  border-color: #111111;
}

.login-form input::placeholder {
  color: #8e887f;
}

.login-error {
  min-height: 17px;
  margin: 3px 0 0;
  color: #bd2d43;
  font-size: 0.75rem;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 9px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 4px;
  padding: 13px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.login-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.login-submit span {
  font-size: 1.15rem;
  line-height: 0.7;
}

.login-footer {
  display: block;
  color: #9a948b;
  font-size: 0.68rem;
  margin-top: 26px;
}

.login-decoration {
  position: absolute;
  border: 1px solid rgba(245, 197, 24, 0.12);
  border-radius: 26px;
  transform: rotate(-18deg);
}

.login-decoration-top {
  width: 360px;
  height: 170px;
  top: -75px;
  right: -100px;
}

.login-decoration-bottom {
  width: 430px;
  height: 200px;
  bottom: -110px;
  left: -130px;
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- SPLASH SCREEN (logo piscando) ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 12px);
  z-index: 300;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  height: 110px;
  max-height: 28vh;
  max-width: 70vw;
  width: auto;
  object-fit: contain;
  animation: splash-blink 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(245, 197, 24, 0.35));
}

@keyframes splash-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(0.96);
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 34px 24px 26px;
  }
  .login-logo {
    height: 52px;
  }
  .login-logo-panel {
    height: 84px;
  }
}
