/* ==========================================================================
   Password-gate lock screen — styled to match the site's dark/teal system
   ========================================================================== */

.lock-screen {
  min-height: calc(100vh - 191px); /* nav + footer allowance, rough */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.lock-card {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.lock-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--elevation-1);
  border: 1px solid var(--stroke-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-badge img {
  width: 28px;
  height: 28px;
}

.lock-card h1 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.lock-form {
  display: flex;
  gap: var(--space-3);
  width: 100%;
}

.lock-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}

.lock-form input[type="password"],
.lock-form input[type="text"] {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--elevation-1);
  border: 1px solid var(--stroke-default);
  border-radius: 9999px;
  padding: 14px 44px 14px 20px;
}

.lock-form button.lock-toggle-pw {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 8px 0 0;
  margin: 0;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.lock-form button.lock-toggle-pw:hover,
.lock-form button.lock-toggle-pw:focus-visible {
  color: var(--text-primary);
  opacity: 1;
}

.lock-form input[type="password"]::placeholder,
.lock-form input[type="text"]::placeholder {
  color: var(--text-secondary);
}

.lock-form input[type="password"]:focus,
.lock-form input[type="text"]:focus {
  outline: none;
  border-color: var(--stroke-teal);
}

.lock-form input[type="password"].input-error,
.lock-form input[type="text"].input-error {
  border-color: #ff5c5c;
}

.lock-form input[type="password"].input-error:focus,
.lock-form input[type="text"].input-error:focus {
  border-color: #ff5c5c;
}

.lock-form button {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--primary-main);
  border: 1px solid var(--primary-main);
  border-radius: 9999px;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.lock-form button:hover {
  opacity: 0.85;
}

.lock-error {
  color: #ff5c5c;
  font-size: 14px;
  min-height: 20px;
  margin: 0;
}

.lock-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  color: var(--text-secondary);
}

.lock-back:hover {
  color: var(--text-primary);
}

@media (max-width: 500px) {
  .lock-form {
    flex-direction: column;
  }
  .lock-form button {
    width: 100%;
  }
}
