* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #10162d;
}

.register-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(87, 113, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(111, 76, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #10162d 0%, #192447 48%, #29245b 100%);
}

.register-page::before,
.register-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.register-page::before {
  width: 380px;
  height: 380px;
  top: -130px;
  left: 38%;
  background: rgba(91, 75, 219, 0.13);
}

.register-page::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 5%;
  background: rgba(74, 144, 226, 0.12);
}

.register-hero {
  position: relative;
  z-index: 1;
  min-height: 760px;
  padding: 70px 12%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #7163f0, #5143c9);
  box-shadow: 0 8px 22px rgba(74, 63, 190, 0.35);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding-bottom: 50px;
}

.hero-content h1 {
  font-size: clamp(48px, 4.8vw, 70px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -2px;
}

.hero-content h1 span {
  color: #a9a1ff;
}

.hero-content p {
  max-width: 600px;
  margin-top: 28px;
  color: #c7cde2;
  font-size: 16px;
  line-height: 1.8;
}

.register-form-section {
  position: relative;
  z-index: 1;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: transparent;
}

.register-card {
  width: 100%;
  max-width: 540px;
  padding: 38px 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.register-heading {
  margin-bottom: 25px;
}

.register-heading h2 {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.register-heading p {
  color: #c4c9dd;
  font-size: 14px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e5e8f5;
  font-size: 13px;
  font-weight: 600;
}

.optional {
  color: #aeb4cb;
  font-weight: 400;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  outline: none;
  background: rgba(12, 18, 40, 0.28);
  color: #ffffff;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: #a6aec8;
}

.form-group input:focus {
  border-color: #a49aff;
  background: rgba(12, 18, 40, 0.42);
  box-shadow: 0 0 0 4px rgba(125, 111, 255, 0.15);
}

.form-group input.input-error {
  border-color: #ff7b89;
  background: rgba(255, 90, 110, 0.08);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.form-group input.input-success {
  border-color: #65d6a2;
  background: rgba(101, 214, 162, 0.08);
}

.form-group input.input-error:focus {
  border-color: #ff7b89;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-error {
  display: block;
  margin-top: 6px;
  color: #ff9ca7;
  font-size: 12px;
  line-height: 1.4;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: #b9bfd5;
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #ffffff;
}

.password-toggle:focus {
  outline: 2px solid #a49aff;
  outline-offset: 2px;
  border-radius: 5px;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 4px;
  margin-bottom: 20px;
  color: #c4c9dd;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.terms input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #8174ff;
  cursor: pointer;
}

.terms input.input-error {
  outline: 2px solid #ff7b89;
  outline-offset: 2px;
}

.terms a {
  color: #b8b0ff;
  font-weight: 700;
  text-decoration: none;
}

.terms a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.terms-error {
  display: block;
  margin-top: -14px;
  margin-bottom: 15px;
  color: #ff9ca7;
  font-size: 12px;
  line-height: 1.4;
}

.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 14px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, #7163f0, #5546d8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(83, 69, 216, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(83, 69, 216, 0.35);
  filter: brightness(1.08);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.divider p {
  color: #aeb4cb;
  font-size: 12px;
}

.google-auth-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5fb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.google-auth-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.google-icon {
  color: #8eb8ff;
  font-size: 20px;
  font-weight: 800;
}

.login-text {
  margin-top: 22px;
  color: #c4c9dd;
  font-size: 13px;
  text-align: center;
}

.login-text a {
  color: #b8b0ff;
  font-weight: 700;
  text-decoration: none;
}

.login-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .register-page {
    grid-template-columns: 1fr;
  }

  .register-hero {
    min-height: auto;
    padding: 45px 8% 20px;
  }

  .hero-content {
    padding: 65px 0 35px;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .register-form-section {
    min-height: auto;
    padding: 30px 25px 55px;
  }

  .register-card {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .register-hero {
    padding: 30px 24px 15px;
  }

  .brand {
    font-size: 23px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding: 45px 0 25px;
  }

  .hero-content h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .hero-content p {
    margin-top: 20px;
    font-size: 14px;
  }

  .register-form-section {
    padding: 20px 15px 35px;
  }

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

  .register-heading h2 {
    font-size: 26px;
  }

  .terms {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}