/* 비밀번호 강도 검사 전용 스타일 */

nav { max-width: 760px; }
main { max-width: 760px; }

/* 프라이버시 안내 */
.privacy-note {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #15803d;
  padding: 0.65rem 0.95rem;
  border-radius: 9px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .privacy-note {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
  }
}

/* 입력 카드 */
.pwd-input-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.pwd-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.45rem;
}

.pwd-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.1rem 0.45rem 0.1rem 0.85rem;
  transition: border-color 0.15s;
}
.pwd-input-wrap:focus-within {
  border-color: var(--primary);
}

#pwd-input {
  flex: 1;
  padding: 0.7rem 0;
  font-size: 1.05rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  letter-spacing: 0.02em;
  min-width: 0;
}

.toggle-show {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1;
}
.toggle-show:hover {
  background: var(--surface);
}

.pwd-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-sub);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.pwd-meta .dot { opacity: 0.5; }

/* 강도 카드 */
.strength-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.meter-track {
  flex: 1;
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}

.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}
.meter-fill.weak    { background: #ef4444; }
.meter-fill.fair    { background: #f59e0b; }
.meter-fill.good    { background: #3b82f6; }
.meter-fill.strong  { background: #22c55e; }

.meter-score {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  min-width: 38px;
  text-align: right;
}

.strength-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.strength-label {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.strength-label.weak   { color: #ef4444; }
.strength-label.fair   { color: #d97706; }
.strength-label.good   { color: #2563eb; }
.strength-label.strong { color: #16a34a; }

.crack-line {
  font-size: 0.85rem;
  color: var(--text);
}
.crack-line .dim {
  color: var(--text-sub);
  margin-right: 0.25rem;
}
.crack-line strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
}

/* 체크리스트 */
.checks-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.checks-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.7rem;
}

.checks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.check-item.ok {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--text);
}
.check-item.ok .check-mark {
  background: #22c55e;
  color: #fff;
}

.check-item.bad {
  color: var(--text-sub);
}
.check-item.bad .check-mark {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

/* 이슈 카드 */
.issues-card {
  padding: 1rem 1.1rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .issues-card { background: rgba(239, 68, 68, 0.1); }
}

.issues-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 0.55rem;
}

.issues-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
}

.issues-list li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .checks-list { grid-template-columns: 1fr; }
  .strength-line { flex-direction: column; align-items: flex-start; }
  .meter-score { font-size: 1.1rem; }
}
