/* =============================================
   PETSHOP PRO — Criar Conta Page
   ============================================= */

.cadastro-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── LEFT PANEL ─── */
.cadastro-left {
  background: linear-gradient(145deg, #1a1540 0%, #2d2560 40%, #5b50a0 100%);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cadastro-left::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.cadastro-left::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(0,181,106,.12); pointer-events: none;
}

.cadastro-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  text-decoration: none; position: relative; z-index: 1;
}
.cadastro-logo .logo-box {
  width: 38px; height: 38px; background: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.cadastro-hero { position: relative; z-index: 1; }

.trial-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,181,106,.20); color: #6EFAC0;
  border: 1px solid rgba(0,181,106,.35); border-radius: 50px;
  padding: 6px 16px; font-size: .76rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 22px;
}

.cadastro-hero h1 {
  color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15; margin-bottom: 18px;
  font-weight: 800; letter-spacing: -.02em;
}
.cadastro-hero h1 span { color: #6EFAC0; }
.cadastro-hero p { color: rgba(255,255,255,.68); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.benefit-list li {
  display: flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,.85); font-size: .92rem;
}
.benefit-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,181,106,.22); border: 1px solid rgba(0,181,106,.40);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #6EFAC0; flex-shrink: 0;
}

.cadastro-bottom { position: relative; z-index: 1; }
.guarantee-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px;
}
.guarantee-icon { font-size: 1.8rem; flex-shrink: 0; }
.guarantee-text strong { display: block; color: #fff; font-size: .9rem; margin-bottom: 3px; }
.guarantee-text span { color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.5; }

/* ─── RIGHT PANEL ─── */
.cadastro-right {
  background: #F7F8FC;
  padding: 56px 52px;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
}

.cadastro-form-wrapper { width: 100%; max-width: 460px; }

.form-header { margin-bottom: 32px; }
.form-header h2 { color: #1A1A2E; font-size: 1.7rem; margin-bottom: 6px; font-weight: 800; letter-spacing: -.02em; }
.form-header p { color: #555; font-size: .92rem; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group label {
  display: block; font-size: .83rem; font-weight: 600; color: #333; margin-bottom: 7px;
}
.form-group label span { color: #ef4444; }

.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: .95rem; pointer-events: none;
}

.form-group input,
.form-group select {
  width: 100%; padding: 12px 13px 12px 40px;
  border: 1.5px solid #E4E6EE; border-radius: 8px;
  font-size: .92rem; font-family: inherit; color: #1A1A2E;
  background: #fff; transition: all .22s ease; outline: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #6B3FA0;
  box-shadow: 0 0 0 3px rgba(107,63,160,.10);
}
.form-group input::placeholder { color: #aaa; }
.form-group input.error { border-color: #ef4444; }
.form-group .error-msg { color: #ef4444; font-size: .76rem; margin-top: 4px; display: none; }
.form-group input.error + .error-msg,
.form-group .error-msg.show { display: block; }

.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #aaa; font-size: .95rem; padding: 4px; transition: all .2s;
}
.password-toggle:hover { color: #6B3FA0; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: #aaa; font-size: .8rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #E4E6EE; }

.terms-group { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.terms-group input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer; accent-color: #6B3FA0;
}
.terms-group label { font-size: .82rem; color: #555; line-height: 1.5; cursor: pointer; }
.terms-group label a { color: #6B3FA0; text-decoration: underline; }

.btn-submit {
  width: 100%; justify-content: center;
  font-size: 1rem; padding: 15px;
  border-radius: 8px; background: #5b50a0;
  color: #fff; border: none; font-weight: 700;
  cursor: pointer; transition: all .22s ease;
  box-shadow: 0 2px 12px rgba(91,80,160,.30);
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: #44397e; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(91,80,160,.40); }
.btn-submit:disabled { opacity: .7; transform: none; cursor: not-allowed; }

.form-footer { text-align: center; margin-top: 20px; color: #555; font-size: .84rem; }
.form-footer a { color: #6B3FA0; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

.security-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #E4E6EE; flex-wrap: wrap;
}
.security-badge { display: flex; align-items: center; gap: 5px; color: #aaa; font-size: .74rem; }
.security-badge .icon { font-size: .9rem; }

/* ─── SUCCESS ─── */
.success-state { display: none; text-align: center; padding: 40px 0; }
.success-state.show { display: block; }
.success-icon {
  width: 76px; height: 76px; background: #E6F9F1; border: 2.5px solid #00B56A;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 22px;
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-state h2 { color: #1A1A2E; margin-bottom: 10px; font-size: 1.6rem; }
.success-state p { margin-bottom: 28px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cadastro-page { grid-template-columns: 1fr; }
  .cadastro-left { padding: 44px 36px; min-height: auto; }
  .cadastro-right { padding: 44px 36px; }
  .cadastro-hero h1 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .cadastro-left { padding: 32px 22px; }
  .cadastro-right { padding: 36px 22px; }
  .form-row { grid-template-columns: 1fr; }
}
