/* /css/lock.css */
/* Stylizacja ekranu blokady serwisu (hasło dostępu) */

.lock-body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, #fefcfb 0, #f3f4f6 45%, #e5e7eb 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111827;
}

.lock-main {
  width: 100%;
  max-width: 480px;
}

.lock-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(148, 163, 184, 0.4);
}

@media (min-width: 640px) {
  .lock-panel {
    padding: 28px 28px 24px;
  }
}

.lock-header {
  margin-bottom: 18px;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
  background: rgba(249, 250, 251, 0.9);
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.lock-header h1 {
  margin: 12px 0 4px;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 650;
  color: #111827;
}

.lock-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.lock-form {
  margin-top: 16px;
}

.lock-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #374151;
}

.lock-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.lock-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #111827;
  background-color: rgba(249, 250, 251, 0.9);
  outline: none;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background-color 0.14s ease,
    transform 0.08s ease;
}

.lock-input::placeholder {
  color: #9ca3af;
}

.lock-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 0 0 4px rgba(129, 140, 248, 0.25);
  background-color: #ffffff;
}

.lock-input--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
  animation: lock-shake 0.3s ease;
}

@keyframes lock-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-3px); }
  40%  { transform: translateX(3px); }
  60%  { transform: translateX(-2px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.lock-toggle {
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: rgba(249, 250, 251, 0.9);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
}

.lock-toggle:hover {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.4);
}

.lock-toggle:active {
  transform: scale(0.97);
}

.lock-toggle-eye {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1.5px solid #9ca3af;
  position: relative;
}

.lock-toggle-eye::before {
  content: '';
  position: absolute;
  inset: 4px 3px;
  border-radius: 9999px;
  border: 1px solid #9ca3af;
}

.lock-toggle-eye::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 9999px;
  background: #9ca3af;
}

.lock-toggle.is-active .lock-toggle-eye {
  border-color: #4f46e5;
}

.lock-toggle.is-active .lock-toggle-eye::before {
  border-color: #4f46e5;
}

.lock-toggle.is-active .lock-toggle-eye::after {
  background: #4f46e5;
}

.lock-hint {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7280;
}

.lock-submit {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 9999px;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #f9fafb;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow:
    0 10px 24px rgba(79, 70, 229, 0.45),
    0 0 0 1px rgba(59, 130, 246, 0.1);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.1s ease;
}

.lock-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 12px 30px rgba(79, 70, 229, 0.55),
    0 0 0 1px rgba(129, 140, 248, 0.2);
}

.lock-submit:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(79, 70, 229, 0.45),
    0 0 0 1px rgba(79, 70, 229, 0.35);
}

.lock-error {
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 3px solid #ef4444;
  background: rgba(254, 242, 242, 0.95);
  font-size: 0.82rem;
  color: #991b1b;
}

.lock-footer {
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6b7280;
}

.lock-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .lock-panel {
    padding-inline: 18px;
  }
}
