:root{
  --bg1:#fff3f7;
  --bg2:#fde7f0;
  --card:#ffffffcc;
  --text:#3a2b33;
  --muted:#7a5c6a;

  --pink:#e88bb0;
  --pink2:#d96a9a;

  --shadow: 0 20px 60px rgba(30, 10, 20, .14);
  --shadow2: 0 8px 20px rgba(30, 10, 20, .10);

  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: radial-gradient(1200px 600px at 15% 10%, var(--bg2), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, #ffd1e3, transparent 60%),
              linear-gradient(180deg, var(--bg1), #fff);
  overflow:hidden;
}

.bg{ position:fixed; inset:0; pointer-events:none; }

.orb{
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity:.55;
  background: radial-gradient(circle at 30% 30%, #ffb6d1, transparent 65%),
              radial-gradient(circle at 70% 70%, #ff86b8, transparent 55%);
  animation: float 10s ease-in-out infinite;
}
.orb-1{ left:-180px; top:-140px; }
.orb-2{ right:-220px; top:80px; width:560px; height:560px; animation-duration: 12s; }
.orb-3{ left:140px; bottom:-260px; width:600px; height:600px; opacity:.45; animation-duration: 14s; }

@keyframes float{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,18px,0); }
}

.page{
  position:relative;
  height:100%;
  display:grid;
  place-items:center;
  padding: 28px;
}

.card{
  width:min(460px, 92vw);
  background: var(--card);
  border:1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}

.head{
  padding: 26px 26px 14px;
  text-align:center;
}

.brand{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}

.logo-fallback{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(145deg, rgba(232,139,176,.35), rgba(217,106,154,.22));
  border: 1px solid rgba(217,106,154,.25);
  box-shadow: 0 14px 30px rgba(217,106,154,.15);
}
.logo-fallback span{
  font-weight: 900;
  color: var(--pink2);
  letter-spacing: .5px;
}

.title{
  margin: 0;
  font-size: 30px;
  color: var(--pink2);
  font-weight: 900;
}
.subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.body{ padding: 18px 26px 24px; }

.form-group{ margin-bottom: 14px; }
label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.input{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 0 12px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(232,139,176,.35);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  transition: border-color .2s ease, transform .08s ease;
}
.input:focus-within{
  border-color: rgba(217,106,154,.75);
  transform: translateY(-1px);
}

.icon{
  width: 22px;
  height: 22px;
  color: rgba(217,106,154,.9);
  display:grid;
  place-items:center;
}
.icon svg{ width:22px; height:22px; }

input{
  border:0;
  outline:none;
  background:transparent;
  width:100%;
  height:100%;
  font-size: 16px;          /* ✅ evita zoom no iOS */
  line-height: 1.2;
  color: var(--text);
}

@media (max-width: 520px){
  input{ font-size:16px; }  /* ✅ garantia extra */
}

.toggle{
  border:0;
  background: transparent;
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  color: rgba(122,92,106,.85);
  cursor:pointer;
  border-radius: 10px;
  transition: background .15s ease;
}
.toggle:hover{ background: rgba(232,139,176,.12); }
.toggle svg{ width:22px; height:22px; }

.hint{
  min-height: 18px;
  font-size: 12px;
  margin-top: 8px;
  color: rgba(200, 50, 90, .95);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color: var(--muted);
  cursor:pointer;
  user-select:none;
}
.check input{ width:16px; height:16px; }

.link{
  font-size: 13px;
  color: var(--pink2);
  text-decoration:none;
}
.link:hover{ text-decoration: underline; }

.btn{
  width:100%;
  height: 50px;
  border:0;
  cursor:pointer;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  box-shadow: 0 14px 30px rgba(217,106,154,.30);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active{ transform: scale(.99); }
.btn:disabled{ opacity: .65; cursor:not-allowed; }

.btn-spin{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color:#fff;
  display:none;
  animation: spin .8s linear infinite;
}
@keyframes spin { to{ transform: rotate(360deg); } }

.foot{
  margin-top: 18px;
  text-align:center;
}
.mini{
  font-size: 12px;
  color: rgba(122,92,106,.75);
}

@media (max-width: 420px){
  .head{ padding: 22px 18px 12px; }
  .body{ padding: 16px 18px 20px; }
}
