﻿:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-background: #121212;
  --color-surface: #1e1e1e;
  --color-surface-light: #2a2a2a;
  --color-border: #333333;
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #a0a0a0;
  --color-accent: #007bff;
  --color-accent-hover: #0056b3;
  --color-info-soft: rgba(0, 123, 255, 0.12);
  --color-success-soft: rgba(40, 167, 69, 0.16);
  --color-warning-soft: rgba(255, 193, 7, 0.14);
  --color-danger-soft: rgba(220, 53, 69, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-shape {
  display: none;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px 18px;
}

.hero {
  margin-bottom: 10px;
}

.hero-spacer {
  display: none;
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 15px;
}

.muted {
  margin: 0;
  color: var(--color-text-secondary);
}

.schedule-notice {
  margin: 6px 0 0;
  color: #9bd2ff;
  font-size: 13px;
}

.schedule-notice.closed {
  color: #ffb3bd;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.panel-closed .card {
  opacity: 0.42;
  filter: grayscale(0.6);
  pointer-events: none;
}

.panel-closed .result {
  pointer-events: auto;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 10px;
}

.form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 500;
}

input {
  border: 1px solid var(--color-border);
  background: var(--color-surface-light);
  color: var(--color-text-primary);
  border-radius: 6px;
  height: 38px;
  padding: 0 12px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #8b8b8b;
}

input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#name {
  text-transform: uppercase;
}

.field-name,
.field-email,
.field-cpf {
  grid-column: span 4;
}

.field-invite,
.captcha-label {
  grid-column: span 2;
}

.field-password,
.altcha-label {
  grid-column: span 3;
}

#captchaAnswer,
#inviteCode {
  text-transform: none;
}

.altcha-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 500;
}

.altcha-box {
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface-light);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  --altcha-border-color: var(--color-border);
  --altcha-border-radius: 6px;
  --altcha-color-base: var(--color-surface-light);
  --altcha-color-base-content: var(--color-text-primary);
  --altcha-color-primary: #0d6efd;
  --altcha-color-primary-content: #ffffff;
  --altcha-color-success: #0f5132;
  --altcha-color-success-content: #d1e7dd;
  --altcha-color-error: #842029;
  --altcha-color-error-content: #f8d7da;
  --altcha-checkbox-border-color: var(--color-border);
  --altcha-checkbox-size: 20px;
  --altcha-max-width: 100%;
  --altcha-padding: 0.5rem;
}

.actions {
  grid-column: span 2;
  display: flex;
  align-items: end;
}

.actions .btn {
  width: 100%;
}

.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  height: 38px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
}

.btn-outline {
  color: var(--color-text-primary);
  background: var(--color-surface-light);
  border-color: var(--color-border);
}

.btn-outline:hover:not(:disabled) {
  background-color: #343434;
}

.result {
  margin-top: 16px;
  background: rgba(23, 162, 184, 0.12);
  border: 1px solid rgba(23, 162, 184, 0.35);
  border-radius: 8px;
  padding: 10px;
}

.hidden {
  display: none;
}

.result-title {
  margin: 0 0 8px;
  color: #8fe6f4;
  font-weight: 700;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.result-message {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 14px;
}

.feedback {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.feedback:empty {
  display: none;
}

.feedback.error {
  color: #ff8b97;
}

.feedback.ok {
  color: #87d7a1;
}

.security-lock {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #050505;
  color: #ffffff;
}

.security-lock-panel {
  width: min(420px, 100%);
  border: 1px solid #333333;
  border-radius: 8px;
  background: #161616;
  padding: 22px;
  text-align: center;
}

.security-lock-panel h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.security-lock-panel p {
  color: #b8b8b8;
  margin: 0;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-name,
  .field-email,
  .field-cpf,
  .field-password,
  .field-invite,
  .captcha-label,
  .altcha-label,
  .actions {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-name,
  .field-email,
  .field-cpf,
  .field-password,
  .field-invite,
  .captcha-label,
  .altcha-label,
  .actions {
    grid-column: span 1;
  }

}
