/* ============================================================
   TM INFINITY — Auth Pages CSS (Login, Cadastro, Recuperação)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(255,26,26,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 90% 90%, rgba(179,0,0,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  background: var(--dark);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,26,26,0.04);
  animation: fadeInUp 0.4s ease both;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,26,26,0.4), transparent);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo a {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.auth-logo a span { color: var(--red); }
.auth-logo p {
  color: var(--white-25);
  font-size: 0.8rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.auth-subtitle {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { color: var(--white-25); font-size: 0.78rem; }

.auth-links {
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
}
.auth-links a { color: var(--red); font-weight: 600; }
.auth-links a:hover { color: var(--red-bright); }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-25);
  font-size: 0.82rem;
  margin-top: 20px;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--gray-light); }

/* Password toggle button */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-right: 44px; }
.input-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white-25);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}
.input-icon-btn:hover { color: var(--gray-light); }

/* Checkbox custom */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.check-row input[type="checkbox"] {
  accent-color: var(--red);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.check-row label {
  font-size: 0.855rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.4;
}
.check-row label a { color: var(--red); }

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px; }
  .auth-title { font-size: 1.15rem; }
}
