/* Cloudflare-like check page (PT-BR) */
/* Tema claro padrão; tema escuro via prefers-color-scheme */
:root {
  /* Light theme */
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --brand: #f38020;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --card: #13161a;
    --line: #2a2f35;
    --text: #e8eaed;
    --muted: #c0c6cf;
    --muted-2: #a6adb7;
    --brand: #f38020;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content {
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 24px 40px;
}

.title {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 7vw, 56px);
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 3vw, 22px);
}

.cf-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 18px;
  width: min(620px, 100%);
  background: transparent;
  transition: opacity .28s ease, transform .28s ease;
  margin: 0 auto; /* centraliza o card na página */
}

.cf-card .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Turnstile container */
.cf-turnstile {
  display: inline-block;
  min-width: 300px;
}

/* Layout do formulário de captcha: centraliza captcha e botão */
#captcha-form .left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#captcha-form .left .cf-turnstile {
  margin: 0 auto;
}

#captcha-form .submit-btn {
  align-self: center;
  margin-top: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #2c3a46;
  border-top-color: #8ab4f8;
  animation: s 1s linear infinite;
}

@keyframes s {
  to {
    transform: rotate(360deg);
  }
}

.checking {
  color: var(--muted);
  font-weight: 500;
}

.hidden { display: none !important; }
.fade-out { opacity: 0; transform: translateY(4px); }
.fade-in { opacity: 1; transform: translateY(0); }

.cf-card .right {
  margin-left: auto;
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand .cloud {
  width: 34px;
  height: 18px;
  display: inline-block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted-2);
}

.links {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-2);
}

.links a {
  color: var(--muted-2);
  text-decoration: underline;
}

.links .sep {
  margin: 0 6px;
  opacity: 0.7;
}

.submit-btn {
  margin-top: 12px;
  background: #1a73e8;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.explain {
  margin: 52px 0 0;
  font-size: clamp(18px, 4vw, 30px);
  color: var(--text);
}

.footer {
  width: 100%;
  color: var(--muted-2);
}

.footer .rule {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.foot-text {
  max-width: 980px;
  margin: 14px auto 36px;
  padding: 0 24px;
  text-align: center;
}

.ray {
  color: var(--muted-2);
  margin-bottom: 6px;
}

.help a {
  color: var(--muted-2);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .content {
    padding-top: 70px;
  }

  .cf-card {
    gap: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .cf-card .right {
    margin-left: 0;
    text-align: left;
  }

  .brand-name {
    display: none;
  }

  .cf-turnstile { min-width: 0; }
  #captcha-form .left { align-items: center; }
  #captcha-form .submit-btn { width: 100%; max-width: 300px; }
}

@media (max-width: 360px) {
  .submit-btn {
    width: 100%;
  }
}
