@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root{
  --bg:#e6f7f0; /* light mint */
  --panel:#1e2a33; /* dark panel */
  --muted:#9aa6b0;
  --accent:#1fc280; /* bright green */
  --panel-2:#24303a;
}

*{box-sizing:border-box}

html,body{height:100%;}
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg,var(--bg),#dff0e8 60%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}

.card{
  width:720px;
  max-width:calc(100% - 48px);
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border-radius:18px;
  padding:42px 48px;
  color:#dbe7eb;
  box-shadow:0 10px 30px rgba(16,30,37,0.35);
  border:6px solid rgba(255,255,255,0.08);
}

.header{
  display:flex;
  align-items:flex-start;
  gap:24px;
}

.title{
  font-size:34px;
  line-height:1.05;
  font-weight:700;
  margin:0 0 8px 0;
}

.title .accent{
  color:var(--accent);
}

.subtitle{
  margin:0;
  color:var(--muted);
  font-weight:400;
}

.cta-row{
  margin-top:20px;
  display:flex;
  align-items:center;
  gap:12px;
}

.cta-row label{
  color:var(--muted);
  font-weight:600;
}

#passwordLength{
  width:84px;
  padding:8px 10px;
  border-radius:8px;
  border:none;
  outline:none;
  background:rgba(255,255,255,0.03);
  color:inherit;
  font-weight:600;
  background-clip: padding-box;
  overflow: visible;
}

.length-control{
  display:inline-flex;
  align-items:center;
  background:rgba(255,255,255,0.02);
  border-radius:10px;
  padding:4px;
}

.length-control input{
  width:56px;
  padding:6px 8px;
  border-radius:6px;
  border:none;
  background:transparent;
  color:inherit;
  text-align:center;
  font-weight:600;
}

.step-btn{
  background:transparent;
  color:var(--muted);
  border:none;
  padding:6px 10px;
  font-size:18px;
  cursor:pointer;
  border-radius:6px;
}

.step-btn:focus{
  outline:2px solid rgba(31,194,128,0.16);
}


.btn{
  display:inline-block;
  background:var(--accent);
  color:#063; /* dark text works with bright green */
  padding:12px 20px;
  border-radius:8px;
  font-weight:600;
  border:none;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(31,194,128,0.18);
}

.divider{
  height:1px;
  background:rgba(255,255,255,0.04);
  margin:28px 0;
}

.password-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.pw-box{
  background:rgba(255,255,255,0.02);
  padding:14px 18px;
  border-radius:8px;
  color:#9fd2c3; /* teal-ish text */
  font-weight:600;
  letter-spacing:0.8px;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* smaller screen tweaks */
@media (max-width:520px){
  .card{padding:28px 20px}
  .title{font-size:26px}
  .password-grid{grid-template-columns:1fr}
}
