/* cadastro.css — visual moderno alinhado ao projeto (use as cores do projeto) */
:root{
  --bg-page: #07061a;
  --accent-left: #6f66ff;
  --accent-right: #c254ff;
  --card-bg: rgba(255,255,255,0.04);
  --card-plain: #f6f7fb;
  --text-dark: #192433;
  --muted: rgba(255,255,255,0.75);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial}
body{
  background: var(--bg-page);
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:20px;
}

/* wrapper */
.signup-wrapper{
  width:100%;
  max-width:980px;
  display:flex;
  gap:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 20px 50px rgba(2,6,23,0.6);
}

/* hero */
.signup-hero{
  flex:1 1 46%;
  background: linear-gradient(135deg, rgba(111,102,255,0.95), rgba(194,84,255,0.9));
  padding:48px 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:420px;
}
.hero-content h1{margin:0;font-size:28px;color:#fff;letter-spacing:0.2px}
.hero-content p{margin-top:8px;color: rgba(255,255,255,0.92);line-height:1.4}

/* form card */
.signup-card{
  flex:1 1 54%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98));
  padding:36px;
  color:var(--text-dark);
  min-width:320px;
}
.card-head{ text-align:center; margin-bottom:8px }
.card-head h2{ margin:0; color:var(--text-dark); font-size:22px }
.card-head p.muted{ margin:6px 0 18px; color:#6b7380; font-size:13px }

/* form controls */
form{ display:block }
label{ display:block; margin-top:12px; font-size:13px; font-weight:600; color:#334155 }
input[type="email"],
input[type="password"],
input[type="text"]{
  width:100%;
  padding:12px 14px;
  margin-top:6px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.06);
  background: #fff;
  font-size:14px;
  color:var(--text-dark);
  transition: box-shadow .18s, border-color .18s;
}
input::placeholder{ color:#9aa3b2; }

input:focus{
  outline:none;
  box-shadow: 0 6px 18px rgba(111,102,255,0.08);
  border-color: rgba(111,102,255,0.5);
}

/* input-group & toggle */
.input-group{ position:relative }
.toggle-pass{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  padding:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: #6b7280;
}
.toggle-pass .icon-eye-slash{ display:none; }
.toggle-pass.showing .icon-eye{ display:none; }
.toggle-pass.showing .icon-eye-slash{ display:inline-block; }

/* password strength */
.password-strength{ display:flex; align-items:center; gap:10px; margin-top:8px; margin-bottom:4px; font-size:13px; color:#55607a }
.password-strength .bar{ flex:1; height:8px; background: rgba(15,23,42,0.04); border-radius:6px; overflow:hidden }
.password-strength .bar-fill{ height:100%; width:0%; background: linear-gradient(90deg, #ff5a8a, #6f66ff); transition: width .28s ease }
.password-strength .label{ white-space:nowrap; color:#6b7380; font-size:13px }

/* terms */
.terms{ display:flex; gap:8px; align-items:center; margin-top:12px }
.terms input{ width:18px; height:18px; }

/* submit */
.submit-btn{
  margin-top:18px;
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:none;
  font-weight:700;
  background: linear-gradient(90deg,var(--accent-left),var(--accent-right));
  color:#fff;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(47, 64, 255, 0.12);
  transition: transform .12s ease, box-shadow .12s;
}
.submit-btn:active{ transform: translateY(1px) }

/* small link */
.login-link{ text-align:center; margin-top:12px; color:#6b7380 }
.login-link a{ color: #334155; font-weight:700; text-decoration:none }

/* responsive */
@media (max-width:880px){
  .signup-wrapper{ flex-direction:column; max-width:520px; }
  .signup-hero{ display:none }
  .signup-card{ padding:26px }
  }
:root{
  --brand:#39d2c7;
  --ok1:#22c55e; --ok2:#16a34a;
  --err1:#ef4444; --err2:#dc2626;
  --overlay:rgba(15,23,42,.55);
}

.app-modal{position:fixed; inset:0; display:grid; place-items:center;
  background:var(--overlay); z-index:9999; opacity:0; pointer-events:none;
  transition:opacity .18s ease;}
.app-modal.show{opacity:1; pointer-events:auto;}
.app-modal.hidden{display:none;} /* caso queira começar invisível */

.modal-card{width:min(92vw,420px); background:#fff; border-radius:16px;
  padding:18px 16px; text-align:center; box-shadow:0 12px 30px rgba(0,0,0,.15);
  transform:translateY(6px) scale(.98); transition:transform .18s ease;}
.app-modal.show .modal-card{transform:translateY(0) scale(1);}

.modal-icon{width:56px; height:56px; border-radius:999px; margin:2px auto 10px;
  display:grid; place-items:center; font-size:28px; color:#fff; font-weight:800;}
.app-modal.success .modal-icon{background:linear-gradient(135deg,var(--ok1),var(--ok2));}
.app-modal.error   .modal-icon{background:linear-gradient(135deg,var(--err1),var(--err2));}

.modal-text{margin:0 8px 12px; color:#0f172a; font:600 15px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;}

.modal-close{border:0; background:var(--brand); color:#fff; height:40px;
  border-radius:10px; padding:0 18px; font-weight:700; cursor:pointer;
  box-shadow:0 2px 10px rgba(57,210,199,.25);}
.modal-close:active{transform:translateY(1px);}
