* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  background: linear-gradient(135deg, #11152d, #1b1f3d);
  color: #ffffff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  padding: max(24px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

button,
input {
  font: inherit;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container {
  width: min(100%, 680px);
  background: rgba(42, 45, 75, 0.95);
  border-radius: 22px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lock {
  font-size: clamp(42px, 10vw, 54px);
  line-height: 1;
  margin-bottom: 22px;
}

h1 {
  margin: 0 0 36px;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.35;
  font-weight: 700;
}

.password-form {
  width: 100%;
}

.password-input {
  width: 100%;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 20px 18px;
  border: 0;
  border-radius: 18px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #3a3d63;
  color: #ffffff;
  text-align: center;
  font-size: clamp(30px, 8vw, 42px);
  letter-spacing: 10px;
}

.password-input::placeholder {
  color: #9ea3c7;
  letter-spacing: 0;
  font-size: clamp(22px, 6vw, 34px);
}

.password-input:focus {
  box-shadow: 0 0 0 4px rgba(127, 168, 255, 0.28);
}

.unlock-btn {
  width: 100%;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 18px;
  border: 0;
  border-radius: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #3d7cff, #4d8dff);
  color: #ffffff;
  cursor: pointer;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  touch-action: manipulation;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.unlock-btn:hover {
  opacity: 0.95;
}

.unlock-btn:active {
  transform: scale(0.98);
}

.unlock-btn:focus-visible {
  outline: 4px solid rgba(127, 168, 255, 0.45);
  outline-offset: 4px;
}

.error {
  display: none;
  margin: 24px 0 0;
  color: #ff6b6b;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.4;
}

.error.is-visible {
  display: block;
}

.footer {
  width: 100%;
  margin-top: 32px;
  padding-bottom: env(safe-area-inset-bottom);
  color: #8f96c7;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #7fa8ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 8px;
  color: #777da8;
  font-size: 15px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: max(40px, env(safe-area-inset-top));
  }

  .container {
    padding: 38px 22px;
    border-radius: 18px;
  }

  .password-input {
    letter-spacing: 6px;
  }

  .footer {
    font-size: 14px;
  }
}
