/* public/css/password.css */

html, body { height: 100%; }

body.password-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Fullscreen background image */
.password-bg {
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  transform-origin: center;
  animation: slowZoom 30s ease-in-out infinite;
  z-index: 0;
}

@keyframes slowZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Dark overlay so text is readable */
.password-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* Card */
.password-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  padding: 22px;
  border-radius: 18px;

  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);

  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.92);
}

.password-logo {
  display: block;
  margin: 0 auto 12px;
  width: clamp(160px, 60%, 280px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
  opacity: 0.95;
}

.password-title {
  margin: 6px 0 14px;
  text-align: center;
  font-size: 1.2rem;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.password-form {
  display: grid;
  gap: 10px;
}

.password-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(245,246,248,0.85);
  outline: none;
  font-size: 1rem;
}

.password-form input:focus {
  border-color: rgba(154, 190, 229, 0.9);
  box-shadow: 0 0 0 3px rgba(154, 190, 229, 0.25);
}

.password-form button {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: #1a2233;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.password-error {
  margin: 8px 0 0;
  color: #ffd1d1;
  font-size: 0.95rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .password-bg { animation: none; }
}

@media (max-width: 600px) {
  .password-bg { animation: none; }
}
