.auth-page {
  min-height: 100vh;
  background: #ffffff;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.auth-page .auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-panel {
  display: none;
  flex: 1 1 42%;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(160deg, #DA8CFF 0%, #9A55FF 55%, #6d28d9 100%);
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 40%);
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: auto 0;
}

.auth-panel h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1.25rem 0 1rem;
  color: #fff;
}

.auth-panel p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
}

.auth-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.92);
}

.auth-panel-list i {
  margin-top: 0.2rem;
}

.auth-form-wrap {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.auth-card .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-card .brand-link img {
  width: 38px;
  height: 38px;
}

.auth-card .brand-link span {
  font-size: 1.55rem;
  font-weight: 800;
  color: #9A55FF;
}

.auth-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1033;
  margin-bottom: 0.35rem;
}

.auth-card .sub {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.auth-sponsor {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.75rem 0 1.25rem;
  padding: 0.65rem 0.8rem;
  background: #f4eefc;
  border: 1px solid #e4d2ff;
  border-radius: 4px;
  color: #5b4a78;
  font-size: 0.86rem;
}

.auth-sponsor strong {
  color: #9A55FF;
  font-weight: 800;
}

.auth-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #f5c2c7;
  border-radius: 4px;
  background: #fff5f5;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b4458;
  margin-bottom: 0.4rem;
}

.auth-card .form-control,
.auth-card .form-select {
  width: 100%;
  max-width: 100%;
  height: 42px;
  border: 1px solid #e4d7f2;
  border-radius: 0;
  background: #fcfaff;
  padding: 0 0.8rem;
  font-size: 0.9rem;
  color: #1a1033;
  box-shadow: none;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.auth-card .country-picker-toggle:focus {
  border-color: #9A55FF;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 85, 255, 0.12);
}

.name-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.name-row .field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.field {
  margin-bottom: 0.9rem;
}

.phone-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #e4d7f2;
  border-radius: 0;
  background: #fcfaff;
  overflow: hidden;
  height: 42px;
}

.phone-box:focus-within {
  border-color: #9A55FF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154, 85, 255, 0.12);
}

.phone-box .phone-code {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-weight: 700;
  color: #9A55FF;
  background: #f3e8ff;
  white-space: nowrap;
  border: 0;
}

.phone-box .form-control {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}

.phone-box .form-control:focus {
  box-shadow: none;
}

.country-picker {
  position: relative;
}

.country-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 42px;
  border: 1px solid #d4b8f0;
  border-radius: 0;
  background: #f3e8ff;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  color: #1a1033;
  text-align: left;
  cursor: pointer;
}

.country-picker-toggle .country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-picker-toggle i {
  color: #9A55FF;
}

.country-picker-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid #e4d7f2;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(26, 16, 51, 0.12);
  overflow: hidden;
}

.country-picker.open .country-picker-menu {
  display: block;
}

.country-picker-menu input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0e6fa;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.country-list {
  max-height: 220px;
  overflow-y: auto;
}

.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option.active {
  background: #f6efff;
}

.country-option .opt-code {
  margin-left: auto;
  color: #9A55FF;
  font-weight: 700;
  font-size: 0.82rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.8rem;
}

.toggle-password {
  position: absolute;
  right: 0.2rem;
  top: auto;
  bottom: 0;
  height: 42px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9A55FF;
  padding: 0 0.65rem;
  cursor: pointer;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.25rem 0 1.25rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.auth-check input {
  margin-top: 0.2rem;
}

.btn-auth {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #DA8CFF 0%, #9A55FF 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-auth:hover {
  color: #fff;
  filter: brightness(1.05);
}

a.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-foot {
  text-align: center;
  margin-top: 1.15rem;
  color: #6b7280;
}

.auth-foot a,
.auth-check a {
  color: #9A55FF;
  font-weight: 600;
  text-decoration: none;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.15rem;
  font-size: 0.88rem;
}

.auth-row a {
  color: #9A55FF;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .auth-panel { display: flex; }
  .auth-form-wrap { padding: 2.5rem 3rem; }
}
