* {
  box-sizing: border-box;
}

:root {
  --page-bg-image: url("assets/background.png");
  --page-bg-darkness: 0.35;
  --page-bg-blur: 0px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: #060e18;
  color: #d0dde8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--page-bg-blur));
  transform: scale(1.04);
  transform-origin: center;
}

body::after {
  z-index: -1;
  background: rgba(0, 0, 0, var(--page-bg-darkness));
}

.auth-shell {
  width: 100%;
  max-width: 430px;
  background: #13202f;
  border: 1px solid #2a4a70;
  border-radius: 8px;
  padding: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.lead {
  margin: 0 0 20px;
  color: #7a9bb8;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid #2a4a70;
  border-radius: 6px;
  background: #0f1b2a;
  color: #d0dde8;
  padding: 10px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #5aafee;
}

.field-row {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #7a9bb8;
  font-size: 12px;
  user-select: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.checkbox-row input {
  margin-top: 2px;
}

button {
  border: 1px solid #3a8fd4;
  background: #3a8fd4;
  color: #06121f;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message {
  display: none;
  margin-bottom: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
}

.message.error {
  display: block;
  background: rgba(231, 76, 60, 0.18);
  border-color: rgba(231, 76, 60, 0.5);
}

.message.ok {
  display: block;
  background: rgba(46, 204, 113, 0.16);
  border-color: rgba(46, 204, 113, 0.45);
}

.policy-info {
  margin: 0 0 14px;
  border: 1px solid rgba(58, 143, 212, 0.45);
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  background: rgba(58, 143, 212, 0.12);
  color: #c6def3;
}

.policy-info.warn {
  border-color: rgba(231, 76, 60, 0.5);
  background: rgba(231, 76, 60, 0.16);
}

.policy-info.ok {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.14);
}

.auth-links {
  margin-top: 16px;
  font-size: 14px;
  color: #7a9bb8;
}

.auth-links a {
  color: #5aafee;
}

.honeypot-wrap {
  display: none;
}
