/* =========================
   AgendaJá — Cadastro (Mobile First)
   ========================= */

/* ---------- Reset básico ---------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

:root{
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;

  --border: #E5E7EB;
  --input-bg: #FFFFFF;

  --primary: #10B981;      /* verde padrão */
  --primary-2: #059669;    /* hover */
  --primary-soft: #ECFDF5;

  --warning-soft: #FFF7ED;
  --danger-soft: #FEF2F2;
  --danger: #EF4444;

  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 500px at 50% -10%, rgba(16,185,129,0.18), transparent 60%),
              var(--bg);
  color: var(--text);
  padding: 18px 12px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
}

/* ---------- Badge topo ---------- */
.badge-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: var(--primary-soft);
  color: #065F46;
  border: 1px solid rgba(16,185,129,0.25);

  font-weight: 600;
  font-size: 12px;

  padding: 8px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Títulos ---------- */
h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 22px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.descricao-topo {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Alerts ---------- */
.error {
  background: var(--danger-soft);
  color: #991B1B;
  border: 1px solid rgba(239,68,68,0.25);
  padding: 12px 12px;
  border-radius: 12px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.35;
}

/* ---------- Form ---------- */
form {
  display: grid;
  gap: 10px;
}

label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0B1220;
}

.label-destaque {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
}

input:focus,
textarea:focus {
  border-color: rgba(16,185,129,0.65);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.14);
}

.hint {
  margin-top: -4px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- Bio box (textarea + ajudinha) ---------- */
.bio-box {
  display: grid;
  gap: 6px;
}

.bio-box small {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Logo upload (logo vira botão) ---------- */
.logo-upload {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  cursor: pointer;
  user-select: none;
}

.logo-preview-circle {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  overflow: hidden;

  background: #fff;
  border: 1px dashed rgba(148,163,184,0.8);
  box-shadow: 0 10px 20px rgba(15,23,42,0.10);

  display: grid;
  place-items: center;
  position: relative;
}

.logo-preview-circle:hover {
  transform: translateY(-1px);
}

#logoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ✅ preenche a bolinha */
  display: none;
}

#logoPlaceholder {
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: #64748B;
  font-weight: 700;
  padding: 10px;
}

.logo-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  opacity: .85;
}

/* ---------- Botão principal ---------- */
.btn-primary,
button[type="submit"] {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;

  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(16,185,129,0.22);
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
  margin-top: 6px;
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow: 0 6px 12px rgba(16,185,129,0.18);
}

/* ---------- Login link ---------- */
.login-link {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.login-link a {
  color: #0EA5E9;
  text-decoration: none;
  font-weight: 800;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ---------- Rodapé pequeno ---------- */
.small {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Desktop / telas maiores ---------- */
@media (min-width: 520px) {
  body {
    padding: 28px 12px;
  }

  .container {
    padding: 22px 20px 18px;
  }

  h1 {
    font-size: 24px;
  }

  .descricao-topo {
    font-size: 14.5px;
  }
}
