@import url('/home/pc/shared/css/portal_header.css?v=20260714a');
@import url('/home/pc/shared/css/portal_footer.css');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #243b53;
  background: linear-gradient(135deg, #f5f8ff 0%, #fff6d9 100%);
}

.auth-flow-main {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto 56px;
}

.auth-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.auth-flow-card,
.auth-flow-aside {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(20, 37, 63, 0.12);
}

.auth-flow-card {
  overflow: hidden;
}

.auth-flow-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.auth-flow-header h1 {
  margin: 0;
  font-size: 28px;
  color: #1e3a5f;
}

.auth-flow-header p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.auth-flow-login-link {
  font-size: 14px;
  color: #64748b;
}

.auth-flow-login-link a {
  color: #0b74de;
  text-decoration: none;
}

.auth-flow-steps {
  padding: 26px 32px 8px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4dceb;
  color: #8a94a6;
  background: #fff;
  font-weight: 700;
}

.step.active .step-circle,
.step.completed .step-circle {
  border-color: #0b74de;
  background: linear-gradient(135deg, #0066cc, #0b83f3);
  color: #fff;
}

.step-label {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.step.active .step-label,
.step.completed .step-label {
  color: #0b74de;
  font-weight: 600;
}

.step-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: #dbe5f0;
}

.step-line.completed {
  background: #0b74de;
}

.auth-flow-form {
  padding: 18px 32px 34px;
}

.auth-flow-form-grid {
  display: grid;
  gap: 18px;
}

.auth-flow-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334e68;
}

.auth-flow-required {
  color: #dc2626;
}

.auth-flow-input,
.auth-flow-textarea {
  width: 100%;
  border: 1px solid #d6deeb;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #243b53;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.auth-flow-input {
  height: 46px;
}

.auth-flow-textarea {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.auth-flow-input:focus,
.auth-flow-textarea:focus {
  border-color: #0b74de;
  box-shadow: 0 0 0 3px rgba(11, 116, 222, 0.14);
}

.auth-flow-input[readonly] {
  background: #f8fafc;
  color: #52606d;
}

.auth-flow-inline {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
}

.auth-flow-inline-wide {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.auth-flow-captcha {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d6deeb;
  background: #f8fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  overflow: hidden;
  cursor: pointer;
}

.auth-flow-captcha img {
  display: block;
  height: 100%;
  width: auto;
}

.auth-flow-send-btn,
.auth-flow-submit,
.auth-flow-link-btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.auth-flow-send-btn {
  height: 46px;
  padding: 0 16px;
  background: #eff6ff;
  color: #0b74de;
  white-space: nowrap;
}

.auth-flow-submit,
.auth-flow-link-btn {
  min-width: 164px;
  height: 48px;
  background: linear-gradient(135deg, #0066cc, #0b83f3);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-flow-submit-row {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.auth-flow-note,
.auth-flow-error,
.auth-flow-success {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}

.auth-flow-note {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-flow-error {
  margin-bottom: 16px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.auth-flow-success {
  margin-bottom: 16px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-flow-aside {
  padding: 24px 22px;
}

.auth-flow-aside h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #1e3a5f;
}

.auth-flow-aside ul {
  margin: 0;
  padding-left: 20px;
  color: #52606d;
  line-height: 1.9;
  font-size: 14px;
}

.auth-flow-aside p {
  margin: 0;
  color: #52606d;
  line-height: 1.9;
  font-size: 14px;
}

.auth-flow-avatar {
  display: grid;
  gap: 14px;
}

.auth-flow-avatar-preview {
  width: 116px;
  height: 116px;
  border-radius: 18px;
  border: 1px dashed #9fb8d9;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
}

.auth-flow-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-flow-success-card {
  padding: 44px 32px 40px;
  text-align: center;
}

.auth-flow-success-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.auth-flow-success-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #1e3a5f;
}

.auth-flow-success-card p {
  margin: 0 auto 20px;
  max-width: 420px;
  line-height: 1.8;
  color: #52606d;
}

.auth-flow-success-meta {
  max-width: 380px;
  margin: 0 auto 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
  text-align: left;
}

.auth-flow-success-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.auth-flow-success-meta-item:last-child {
  border-bottom: 0;
}

.auth-flow-hidden {
  display: none;
}

@media (max-width: 960px) {
  .auth-flow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .auth-flow-main {
    width: min(100%, calc(100% - 20px));
    margin-top: 24px;
  }

  .auth-flow-header,
  .auth-flow-steps,
  .auth-flow-form,
  .auth-flow-success-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-flow-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-flow-inline,
  .auth-flow-inline-wide {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 8px;
  }

  .step-label {
    font-size: 12px;
  }
}
