* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(
      circle at 15% 75%,
      rgba(255, 255, 255, 0.85),
      transparent 30%
    ),
    linear-gradient(120deg, #eeeaff 0%, #dcd4ff 30%, #f5dfff 58%, #dff8ff 100%);
}
.auth-intro-wrapper {
  position: relative;
  min-height: 630px;
}

.auth-intro-wrapper .auth-back {
  position: absolute;
  top: 20px;
  left: 26px;
  z-index: 2;
}

.auth-intro-wrapper .auth-intro {
  height: 100%;
  min-height: 630px;
}
.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 310px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(76, 57, 160, 0.25);
}

.auth-intro {
  position: relative;
  min-height: 630px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.13) 1px,
      transparent 1px
    ),
    linear-gradient(145deg, #6254ed, #4738e8);
  background-size:
    18px 18px,
    auto;
}

.auth-back {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-intro-content {
  margin-top: 70px;
  margin-bottom: 0;
}

.auth-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
}

.auth-intro h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.25;
}

.auth-intro p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.55;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-feature i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.16);
}

.auth-form-panel {
  min-width: 0;
  padding: 28px 28px 24px;
  background: #ffffff;
}

.auth-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e8e4f3;
}

.auth-tab {
  position: relative;
  padding-bottom: 12px;
  color: #9996a1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.auth-tab.active {
  color: #6955ed;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 3px;
  background: #6955ed;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.form-label-row label {
  color: #676474;
  font-size: 11px;
  font-weight: 700;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label-row a {
  color: #7359ed;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.input-wrapper {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #e5def9;
  border-radius: 13px;
  background: #f7f4ff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #755cff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(117, 92, 255, 0.08);
}

.input-wrapper > i {
  flex-shrink: 0;
  color: #aaa6b6;
  font-size: 13px;
}

.input-wrapper input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #393642;
  font-family: inherit;
  font-size: 12px;
}

.input-wrapper input::placeholder {
  color: #96929e;
}

.password-toggle {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #9a97a2;
  cursor: pointer;
}

.form-error {
  color: #e34c67;
  font-size: 10px;
}

.auth-captcha {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
}

.captcha-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  font-size: 12px;
}

.captcha-success i {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #209447;
}

.captcha-brand {
  color: #333333;
  font-size: 8px;
  font-weight: 700;
}

.auth-submit {
  height: 40px;
  border: 0;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #9967ff, #5141f5);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(92, 69, 239, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(92, 69, 239, 0.3);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 13px;
  color: #aaa7af;
  font-size: 9px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9e6ee;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-login button {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e5e0ef;
  border-radius: 9px;
  color: #45424b;
  background: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.social-login button i {
  font-size: 13px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #77737f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.terms-check input {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #6955ed;
}

.terms-check a {
  color: #6955ed;
  font-weight: 700;
}

.register-card .auth-intro {
  min-height: 760px;
}

@media (max-width: 800px) {
  .auth-card {
    position: relative;
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .auth-intro-wrapper {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    min-height: 0;
    z-index: 20;
  }

  .auth-intro-wrapper .auth-intro {
    display: none;
  }

  .auth-intro-wrapper .auth-back {
    position: static;
    width: 34px;
    height: 34px;
    color: #6955ed;
    background: #f1edff;
    border-color: #e5def9;
  }

  .auth-form-panel {
    position: relative;
    padding-top: 70px;
  }
}

@media (max-width: 520px) {
  .auth-body {
    padding: 0;
  }

  .auth-card {
    min-height: 100vh;
    border-radius: 0;
  }

  .auth-form-panel {
    padding: 70px 18px 24px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}
