:root{
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --gap: 16px;
  --maxw: 760px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071022 0%, #071420 100%);
  color:#e6eef6;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* container */
.container{
  width:100%;
  max-width:var(--maxw);
}

/* title */
.title{
  text-align:center;
  margin:0 0 18px;
  font-size:1.6rem;
  letter-spacing:0.2px;
  color: #f0f7ff;
}

/* card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:var(--radius);
  padding:20px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

/* output row */
.output-row{
  display:flex;
  gap:12px;
  margin-bottom: 14px;
}
.password-display{
  flex:1;
  padding:12px 14px;
  border-radius:10px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.02);
  color: #eaf3ff;
  font-weight:600;
  font-size:1rem;
  outline:none;
}
.password-display::placeholder{color:var(--muted)}

.btn{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border:none;
  color:white;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}
.btn.small{padding:8px 10px; font-size:0.9rem;}
.btn.outline{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
}

/* controls */
.controls{display:grid;gap:10px}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:0.95rem;
  color:var(--muted);
}
.length-control{display:flex;gap:10px;align-items:center;width:60%}
input[type="range"]{width:100%}
.checkbox-row input{width:18px;height:18px;accent-color:var(--accent)}

.strength-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.strength{
  flex:1;
  background:rgba(255,255,255,0.03);
  height:10px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.02);
}
.strength-bar{
  height:100%;
  width:0%;
  transition:width .25s ease;
  background: linear-gradient(90deg,#ef4444,#f59e0b,#10b981);
}

.strength-label{font-size:0.85rem;color:var(--muted);min-width:56px;text-align:right}

.actions{
  display:flex;
  gap:10px;
  margin-top:6px;
}

/* hint + footer */
.hint{color:var(--muted);font-size:0.85rem;margin:6px 0 0}

/* responsive */
@media (max-width:560px){
  .output-row{flex-direction:column}
  .length-control{width:100%}
  .row{flex-direction:column;align-items:flex-start;gap:6px}
  .strength-label{text-align:left}
  .actions{flex-direction:column}
}
