:root {
  --primary: #7c3aed;
  --secondary: #db2777;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  padding: 40px 20px;
}

.register-card {
  background: #fff;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.register-card h2 { text-align: center; margin-bottom: 10px; font-size: 28px; color: #111827; }
.register-card p.subtitle { text-align: center; color: #6b7280; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-group input { 
    width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid #e5e7eb; 
    transition: 0.3s; outline: none; font-size: 15px; box-sizing: border-box;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }

.terms-check { margin-bottom: 20px; }
.terms-check-label {
    display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer;
    font-weight: 400 !important; font-size: 13px; line-height: 1.6; color: #4b5563;
}
.terms-check-label input[type="checkbox"] {
    width: 18px !important; height: 18px; flex-shrink: 0; margin-top: 2px;
    border-radius: 4px; border: 2px solid #d1d5db; accent-color: var(--primary); cursor: pointer;
}
.terms-check-label a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.terms-check-label a:hover { text-decoration: none; }

.btn-register {
  width: 100%; padding: 14px; background: #2563eb;
  color: #fff; border: none; border-radius: 14px; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); }

.error-box { background: #fee2e2; color: #991b1b; padding: 15px; border-radius: 12px; margin-bottom: 20px; border-left: 5px solid #ef4444; font-size: 14px; }
.login-link { text-align: center; margin-top: 25px; font-size: 14px; color: #6b7280; }
.login-link a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* ── Tipo de Pessoa Toggle ─────────────────────────── */
.tipo-pessoa-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.tipo-option {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
    text-align: left;
}
.tipo-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.tipo-option:hover { border-color: var(--primary); background: #f5f3ff; }
.tipo-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff, #fdf4ff);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.tipo-label { font-weight: 700; font-size: 13px; color: #111827; }
.tipo-sub { font-size: 11px; color: #6b7280; }

/* ── Plan Badge ────────────────────────────────────── */
.plan-badge {
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border: 1px solid #c4b5fd;
    color: #5b21b6;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}
.plan-badge-pj {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border-color: #6ee7b7;
    color: #065f46;
}

/* ── Form layout extras ────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.label-opt { font-weight: 400; color: #9ca3af; font-size: 12px; }
.required-star { color: #ef4444; }
.field-hint { display: block; font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* ── Password strength ─────────────────────────────── */
.password-strength { margin-top: -10px; margin-bottom: 16px; }
.pwd-bar { height: 4px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.pwd-fill { height: 100%; width: 0; border-radius: 99px; transition: width 0.3s, background 0.3s; }
.pwd-label { font-size: 11px; font-weight: 600; margin-top: 4px; display: block; }

/* Eye toggle */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px !important; }
.pass-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8;
  padding: 4px; line-height: 0; border-radius: 4px;
}
.pass-eye:hover { color: var(--primary); }
.pass-eye svg { display: block; }

@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .tipo-pessoa-toggle { grid-template-columns: 1fr; }
    .register-card { padding: 28px 20px; }
}
