:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #07111f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.26), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.22), transparent 34%),
    linear-gradient(145deg, #07111f, #0f172a 58%, #111827);
}

.card {
  width: min(100%, 410px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  color: white;
  font-size: 25px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.subtitle {
  margin: 10px 0 28px;
  color: #64748b;
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.password-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  overflow: hidden;
  background: white;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.password-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.password-wrap input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
}

.show-btn {
  border: 0;
  padding: 0 14px;
  color: #475569;
  background: transparent;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 13px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.status {
  min-height: 22px;
  margin: 13px 0 0;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.5;
}

.status.success {
  color: #15803d;
}

.security-note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .page {
    padding: 16px;
  }

  .card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  h1 {
    font-size: 28px;
  }
}
