.page-auth-register {
  --register-surface: linear-gradient(180deg, #FFFFFF 0%, #F5FAF2 100%);
  --register-surface-strong: #F5FAF2;
  --register-border: #DDEBD7;
  --register-border-strong: rgba(118, 185, 87, 0.24);
  --register-text: #1F2A1F;
  --register-muted: rgba(31, 42, 31, 0.68);
  --register-accent: #76B957;
  --register-accent-soft: rgba(118, 185, 87, 0.16);
  --register-shadow: 0 24px 60px rgba(31, 42, 31, 0.10);
}

.page-auth-register .auth-page {
  position: relative;
  padding: 24px 0 72px;
  background: transparent;
}

.page-auth-register .page-head,
.page-auth-register .section {
  position: relative;
  z-index: 1;
}

.page-auth-register .page-head {
  padding: 26px 0 14px;
}

.page-auth-register .page-head .container {
  max-width: 980px;
}

.page-auth-register .page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--register-text);
}

.page-auth-register .subtitle {
  max-width: 680px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--register-muted);
}

.page-auth-register .section {
  padding: 12px 0 0;
}

.page-auth-register .login-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 34px 34px 28px;
  border-radius: 28px;
  border: 1px solid var(--register-border);
  background: var(--register-surface);
  box-shadow: var(--register-shadow);
}

.page-auth-register .login-title {
  margin-bottom: 22px;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--register-text);
}

.page-auth-register .field {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 14px;
}

.page-auth-register .input {
  width: 100%;
  min-height: 58px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #DDEBD7;
  background: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--register-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.page-auth-register .input:focus {
  border-color: var(--register-accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--register-accent-soft);
  transform: translateY(-1px);
}

.page-auth-register .label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: rgba(31, 42, 31, 0.5);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.page-auth-register .input:focus + .label,
.page-auth-register .input:not(:placeholder-shown) + .label {
  opacity: 0;
  transform: translateY(-60%);
}

.page-auth-register .field-error {
  margin-top: 8px;
  padding-left: 4px;
  font-size: 0.92rem;
  color: #9b3d22;
}

.page-auth-register .is-invalid {
  border-color: #b24b29 !important;
  box-shadow: 0 0 0 4px rgba(178, 75, 41, 0.12) !important;
}

.page-auth-register .options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  color: var(--register-muted);
}

.page-auth-register .check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-auth-register .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--register-accent);
}

.page-auth-register .notice {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--register-border);
  background: #FFFFFF;
  color: var(--register-text);
}

.page-auth-register .notice.is-error {
  border-color: rgba(178, 75, 41, 0.28);
  background: rgba(255, 243, 239, 0.94);
}

.page-auth-register .notice.is-success {
  border-color: rgba(55, 133, 90, 0.26);
  background: rgba(244, 255, 248, 0.94);
}

.page-auth-register .notice.is-hidden {
  display: none;
}

.page-auth-register .button {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background-color: var(--color-bg);
  background-image: var(--animated-gradient);
  background-size: var(--animated-gradient-size);
  background-position: 0% 50%;
  animation: gradient-animation var(--animated-gradient-speed) ease infinite;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateY(-3px);
}

.page-auth-register .button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--btn-bg);
  z-index: -1;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.page-auth-register .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--color-bg);
  background-image: var(--animated-gradient);
  background-size: var(--animated-gradient-size);
  background-position: 0% 50%;
  animation: gradient-animation var(--animated-gradient-speed) ease infinite;
  color: #FFFFFF;
}

.page-auth-register .button:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.page-auth-register .button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-auth-register .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-auth-register .divider {
  height: 1px;
  margin: 20px 0 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(221, 235, 215, 0.2) 18%, rgba(221, 235, 215, 0.2) 82%, transparent 100%);
}

.page-auth-register .signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-auth-register .muted {
  color: var(--register-muted);
}

.page-auth-register .link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(14, 11, 8, 0.18);
}

.page-auth-register .link:hover {
  color: var(--color-brand);
  border-bottom-color: currentColor;
}

@media (max-width: 640px) {
  .page-auth-register .auth-page {
    padding: 18px 0 54px;
  }

  .page-auth-register .page-head {
    padding-top: 18px;
  }

  .page-auth-register .login-card {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .page-auth-register .login-title {
    font-size: 1.85rem;
  }

  .page-auth-register .signup,
  .page-auth-register .options {
    align-items: flex-start;
    flex-direction: column;
  }
}
