/* Gooly — estilos para páginas auth, checkout, account, result */

html, body { background: var(--color-bg); color: var(--color-text); }
body { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Nav (simplificada — reusa estilos de landing.css; aqui só override mínimo) */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, 0.7);
  border-bottom: 1px solid rgba(30, 41, 64, .5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

/* Card de página (login, checkout, etc) */
.page-main { flex: 1; padding: 60px 0 80px; }
.card-page {
  max-width: 480px; margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 40px 36px;
}
.card-page-wide { max-width: 720px; }

.page-title {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.05; letter-spacing: -.4px;
  margin-bottom: 8px;
}
.page-subtitle {
  font-family: var(--font-body); font-size: 15px;
  color: var(--color-text-muted); margin-bottom: 28px;
}

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input, .field select {
  height: 48px; padding: 0 16px;
  background: var(--color-surface-variant);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 230, 118, .04);
}
.field-error {
  font-family: var(--font-body); font-size: 12px;
  color: var(--color-error); margin-top: 4px;
}

.alert {
  padding: 12px 14px; border-radius: 10px;
  font-family: var(--font-body); font-size: 13px;
  margin-bottom: 18px;
}
.alert-error {
  background: rgba(255, 82, 82, .1);
  border: 1px solid rgba(255, 82, 82, .3);
  color: var(--color-error);
}
.alert-info {
  background: rgba(68, 138, 255, .08);
  border: 1px solid rgba(68, 138, 255, .3);
  color: var(--color-secondary);
}
.alert-success {
  background: rgba(0, 230, 118, .08);
  border: 1px solid rgba(0, 230, 118, .3);
  color: var(--color-primary);
}

.btn-full { width: 100%; justify-content: center; height: 52px; margin-top: 8px; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.muted-link {
  text-align: center; margin-top: 18px;
  font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted);
}
.muted-link a { color: var(--color-primary); font-weight: 600; }
.muted-link a:hover { text-decoration: underline; }

/* Checkout summary */
.summary {
  background: var(--color-surface-variant);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--color-border-light);
  margin-top: 10px; padding-top: 14px;
  font-family: var(--font-display); font-size: 22px; color: var(--color-text);
}
.summary-row .v { color: var(--color-text); font-weight: 600; }

.period-toggle {
  display: inline-flex; padding: 5px; gap: 4px;
  background: var(--color-surface-variant);
  border: 1px solid var(--color-border); border-radius: 999px;
  margin-bottom: 22px;
}
.period-toggle button {
  padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-text-muted);
  transition: all .2s ease;
}
.period-toggle button.active {
  background: var(--color-primary); color: var(--color-bg);
}

.row { display: flex; align-items: center; gap: 12px; }
.row > * { flex: 1; }

.security-note {
  margin-top: 22px; text-align: center;
  font-family: var(--font-body); font-size: 12px;
  color: var(--color-text-faint);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Spinner */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Big icon result page */
.result-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.result-icon.success { background: rgba(0, 230, 118, .12); color: var(--color-primary); border: 1px solid rgba(0, 230, 118, .4); }
.result-icon.error   { background: rgba(255, 82, 82, .12); color: var(--color-error);   border: 1px solid rgba(255, 82, 82, .4); }
.result-icon.pending { background: rgba(255, 215, 0, .12); color: var(--color-accent);  border: 1px solid rgba(255, 215, 0, .4); }

footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  font-family: var(--font-body); font-size: 12px; color: var(--color-text-faint);
  text-align: center;
}
footer a { color: var(--color-primary); }
