body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: #eaf6ff;
  background:
    linear-gradient(135deg, rgba(10, 18, 40, 0.96), rgba(6, 36, 70, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 40px
    );
  background-attachment: fixed;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(7, 16, 34, 0.82);
  border: 1px solid rgba(111, 204, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 50px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(47, 180, 255, 0.12);
  backdrop-filter: blur(10px);
}

.auth-logo {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #73d9ff;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(234, 246, 255, 0.72);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #9fdfff;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(120, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
  border-color: rgba(98, 214, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(66, 193, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.primary-button {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1cb5ff, #3b82ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 137, 250, 0.32);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 137, 250, 0.4);
}

.primary-button:active {
  transform: translateY(0);
}

.message-text {
  margin-top: 18px;
  min-height: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #bdeeff;
}

.auth-links {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(234, 246, 255, 0.72);
}

.auth-links a {
  color: #7edcff;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.65);
}

.is-hidden {
  display: none;
}

.auth-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(234, 246, 255, 0.65);
}

.field-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ff7b91;
}

.form-error {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #ff8ea1;
}

.input-error {
  border-color: rgba(255, 104, 132, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(255, 104, 132, 0.14) !important;
}

.is-submitting {
  opacity: 0.92;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: 0 8px 24px rgba(31, 137, 250, 0.18);
}

.success-view {
  text-align: left;
}

.success-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(115, 217, 255, 0.18);
}

.success-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #87ddff;
}

.success-email {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.full-width {
  width: 100%;
}

.check-group {
  margin-bottom: 18px;
}

.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: #eaf6ff;
}

.check-label input[type="checkbox"] {
  margin-top: 3px;
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.full-width {
  width: 100%;
}

.ghost-button {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(120, 206, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}