/* Auth popup sobre fundo Bilhar 360 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: "Made Tommy Soft", "Segoe UI", system-ui, sans-serif;
  background: #05080f;
  color: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.auth-page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: auto;
}

.auth-page__bg {
  position: fixed;
  inset: 0;
  background:
    url("/assets/sinuquinha-ui/splash-loading.png") center / cover no-repeat;
  z-index: 0;
}

.auth-page__dim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.auth-popup {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  max-height: min(92dvh, 720px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 2px solid rgba(255, 200, 80, 0.35);
  background:
    linear-gradient(180deg, rgba(30, 40, 60, 0.92), rgba(10, 14, 24, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 140, 0, 0.12);
  animation: auth-pop 0.35s ease both;
}

@keyframes auth-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-popup__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
}

.auth-popup__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.auth-popup__title {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.auth-popup__sub {
  margin: 0 0 1.1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.auth-msg {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
}

.auth-msg--ok {
  background: rgba(40, 160, 80, 0.25);
  border: 1px solid rgba(80, 220, 120, 0.4);
  color: #b8ffd0;
}

.auth-msg--err {
  background: rgba(180, 40, 40, 0.28);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ffc8c8;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.auth-field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-field input:focus {
  border-color: rgba(255, 200, 80, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 180, 40, 0.15);
}

.auth-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.auth-check input {
  margin-top: 0.15rem;
  accent-color: #f0b429;
}

.auth-check a {
  color: #ffe14a;
  font-weight: 700;
  text-decoration: none;
}

.auth-check a:hover {
  text-decoration: underline;
}

.auth-submit {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.auth-submit--green {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(180deg, #3ddc6a, #1a9a3f);
}

.auth-submit--blue {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(180deg, #4aa3ff, #1f6fd8);
}

.auth-submit:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-links a {
  color: #ffe14a;
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-forgot {
  text-align: right;
  margin-top: -0.25rem;
}

.auth-forgot a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.auth-forgot a:hover {
  color: #ffe14a;
}

@media (max-width: 480px) {
  .auth-popup {
    width: 100%;
    padding: 1.15rem 1rem 1rem;
    border-radius: 16px;
  }
}
