.auth-header {
  width: 100%;
  background: var(--blue);
  padding: 18px 20px 44px;
  position: relative;
  overflow: hidden;
}

.auth-header::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.auth-header::before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.auth-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.auth-logo-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.auth-logo-icon span {
  position: absolute;
  top: 0;
}

.auth-logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.auth-logo-text span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.auth-header-step {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-header-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.auth-card-wrap {
  width: 100%;
  max-width: 420px;
  padding: 0 16px 32px;
  margin: -22px auto 0;
  position: relative;
  z-index: 2;
}

.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--card);
  border-radius: 14px 14px 0 0;
  border: 0.5px solid var(--border);
  border-bottom: none;
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 13px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--card);
  color: var(--text-muted);
  transition: all 0.18s;
  border-bottom: 2.5px solid transparent;
}

.auth-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: #fff;
}

.auth-tab:first-child {
  border-right: 0.5px solid var(--border);
}

.auth-card {
  background: var(--card);
  border-radius: 0 0 14px 14px;
  border: 0.5px solid var(--border);
  border-top: none;
  padding: 20px 20px 22px;
  box-shadow: 0 4px 24px rgba(13, 71, 161, 0.07);
}

.auth-panel {
  display: none;
}
.auth-panel.active {
  display: block;
}

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

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: #fafbfc;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  background: #fff;
}

.form-input.error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.09);
}

.form-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  color: var(--text-muted);
}

.form-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 2px;
}

.form-error {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}

.form-error-item {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.5;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.form-divider-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.form-divider-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pw-strength {
  margin-top: 7px;
  display: none;
}

.pw-strength.show {
  display: block;
}

.pw-strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
}

.pw-bar {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--border);
  transition: background 0.2s;
}

.pw-bar.weak {
  background: #e53935;
}

.pw-bar.ok {
  background: #ff9800;
}

.pw-bar.strong {
  background: #2e7d32;
}

.pw-strength-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  cursor: pointer;
}

.form-check input {
  margin: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.form-check-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sec);
  line-height: 1.5;
}

.form-check-label a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.form-forgot {
  float: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 14px;
  display: block;
  text-align: right;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.12s;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  opacity: 1;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--blue);
}

.btn-loading.show {
  display: flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-notice {
  background: var(--green-bg);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #c8e6c9;
  display: none;
}

.auth-notice.error-notice {
  background: var(--red-bg);
  border-color: #ffcdd2;
}

.auth-notice.show {
  display: flex;
}

.auth-notice-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.auth-notice-text {
  font-size: 11px;
  font-weight: 600;
  color: #1b5e20;
  line-height: 1.45;
}

.auth-notice.error-notice .auth-notice-text {
  color: #b71c1c;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-bottom-banner {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 388px;
  width: calc(100% - 32px);
}

.auth-bb-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.auth-bb-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-bb-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
}

.reg-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.reg-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.reg-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1.5px;
  background: var(--border);
}

.reg-step.done::after,
.reg-step.curr::after {
  background: var(--blue);
}

.reg-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  z-index: 1;
  transition: all 0.2s;
}

.reg-step.done .reg-step-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.reg-step.curr .reg-step-dot {
  border: 2px dashed var(--blue);
  color: var(--blue);
}

.reg-step-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.reg-step.done .reg-step-label,
.reg-step.curr .reg-step-label {
  color: var(--blue);
}

@media (min-width: 720px) {
  body {
    background: var(--bg2);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
  }

  .auth-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(13, 71, 161, 0.13);
  }

  .auth-left {
    background: var(--blue);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .auth-left::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
  }

  .auth-left::before {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
  }

  .auth-header {
    display: none;
  }

  .auth-left-logo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .auth-left-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
  }

  .auth-left-logo-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .auth-left-logo-icon span {
    position: absolute;
    top: 0;
  }

  .auth-left-step {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    height: 26px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .auth-left-logo-text {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
  }

  .auth-left-logo-text span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
  }

  .auth-left-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .auth-left-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .auth-left-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .auth-left-stats {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
  }

  .auth-ls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1;
    min-width: 100px;
  }

  .auth-ls-val {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
  }

  .auth-ls-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .auth-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 285px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .auth-left-bb-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

  .auth-left-bb-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
  }

  .auth-left-bb-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
  }

  .auth-right {
    background: #fff;
    padding: 36px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-card-wrap {
    max-width: none;
    padding: 0;
    margin-top: 0;
  }

  .auth-tabs {
    border-radius: 10px 10px 0 0;
  }

  .auth-bottom-banner {
    display: none;
  }
}

@media (max-width: 719.98px) {
  .auth-page-wrap {
    width: 100%;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 0;
  }
}

.auth-header-content {
  width: 100%;
  max-width: 388px;
  margin: 0 auto;
}

.auth-card {
  animation: fadeUp 0.25s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-input {
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
