@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Syne', sans-serif;
  background: #0a0e1a;
  min-height: 100vh;
  color: #e8f4ff;
  overflow-x: hidden;
}

/* ── Canvas background ── */
#starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
}

.card {
  width: 100%;
  max-width: 560px;
}

/* ── Branding ── */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .2rem;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: #00c8ff;
  letter-spacing: .04em;
}

.brand span {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  font-size: 13px;
  margin-left: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Portfolio button ── */
.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

.portfolio-btn:hover {
  color: #00c8ff;
  border-color: rgba(0, 200, 255, 0.45);
  background: rgba(0, 200, 255, 0.07);
}

h1 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-top: .3rem;
  margin-bottom: 2.2rem;
}

/* ── Field label ── */
.field-label {
  font-size: 11px;
  font-weight: 700;
  color: #6fa8cc;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

/* ── Password input ── */
.pw-wrap {
  position: relative;
  margin-bottom: .85rem;
}

#pw {
  width: 100%;
  padding: 13px 48px 13px 16px;
  font-size: 16px;
  font-family: 'Space Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  color: #e8f4ff;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

#pw::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

#pw:focus {
  border-color: rgba(0, 200, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

/* ── Toggle eye button ── */
.toggle-btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
}

.toggle-btn:hover {
  color: #00c8ff;
}

/* ── Strength bars ── */
.bar-row {
  display: flex;
  gap: 6px;
  margin-bottom: .5rem;
}

.bar {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  transition: background .35s;
}

.bar.weak   { background: #E24B4A; }
.bar.fair   { background: #EF9F27; }
.bar.good   { background: #1D9E75; }
.bar.strong { background: #00c8ff; }

/* ── Strength label ── */
.strength-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  height: 18px;
  transition: color .3s;
  color: rgba(255, 255, 255, 0.2);
}

.strength-label.weak   { color: #E24B4A; }
.strength-label.fair   { color: #EF9F27; }
.strength-label.good   { color: #1D9E75; }
.strength-label.strong { color: #00c8ff; }

/* ── Checks grid ── */
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 1.2rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  transition: all .25s;
}

.check.pass {
  background: rgba(0, 200, 100, 0.1);
  border-color: rgba(0, 200, 100, 0.38);
  color: #5de8a0;
}

.check-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Crack time box ── */
.crack-box {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crack-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 3px;
}

.crack-time {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  color: #e8f4ff;
}

.entropy-badge {
  font-size: 12px;
  color: #00c8ff;
  font-family: 'Space Mono', monospace;
}

/* ── Footer ── */
.footer {
  margin-top: 2.5rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: .06em;
}

.footer span {
  color: #00c8ff;
  font-weight: 700;
}
