/* 诊断系统登录/注册页 - 产品级视觉，不污染作业网站 */

.auth-page-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin-top: 1rem;
}

.auth-page {
  min-height: calc(100vh - 56px);
  padding-top: 2rem;
  padding-bottom: 3rem;
  background: var(--gray-50);
}

.auth-page .auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 992px) {
  .auth-page .auth-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Hero 区域：背景图 + 遮罩 */
.auth-page .auth-hero {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  border-radius: 16px 0 0 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--gray-900);
  background-image: var(--auth-hero-bg, url('/static/diagnostic/img/auth-hero.png'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-page .auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,18,38,0.62) 0%, rgba(6,18,38,0.40) 45%, rgba(6,18,38,0.15) 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: 16px 0 0 16px;
}

.auth-page .auth-hero > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .auth-page .auth-hero {
    border-radius: 16px 16px 0 0;
    min-height: 280px;
    padding: 2rem 1.5rem;
  }
  .auth-page .auth-hero::before {
    border-radius: 16px 16px 0 0;
  }
}

.auth-page .auth-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.auth-page .auth-hero .auth-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.auth-page .auth-hero .auth-subtitle-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.auth-page .auth-hero .auth-competitions {
  margin-bottom: 1.75rem;
}

.auth-page .auth-hero .auth-competitions-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-page .auth-hero .auth-competitions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-page .auth-hero .auth-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
}

.auth-page .auth-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.auth-page .auth-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.auth-page .auth-highlights .auth-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.auth-page .auth-highlights li:nth-child(1) .auth-icon { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }
.auth-page .auth-highlights li:nth-child(2) .auth-icon { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.auth-page .auth-highlights li:nth-child(3) .auth-icon { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }

.auth-page .auth-highlights strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.auth-page .auth-highlights span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.auth-page .auth-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-page .auth-sample-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}

.auth-page .auth-form-col {
  padding: 2rem 0 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #f0f2f5;
}

@media (max-width: 992px) {
  .auth-page .auth-form-col {
    padding: 1.5rem 0 2rem 0;
    order: -1;
  }
}

.auth-page .auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  width: 420px;
  max-width: 100%;
}

.auth-page .auth-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1d21;
  margin-bottom: 1.5rem;
}

.auth-page .auth-field {
  margin-bottom: 1.25rem;
}

.auth-page .auth-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.auth-page .auth-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .auth-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-page .auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.2s;
}

.auth-page .auth-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #fff;
}

.auth-page .auth-card .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}

.auth-page .auth-card .form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0.65rem 1rem;
  font-size: 1rem;
}

.auth-page .auth-card .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-page .auth-card .btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  margin-top: 0.5rem;
}

.auth-page .auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.auth-page .auth-card .auth-switch {
  text-align: center;
  margin-top: 1.25rem;
}

.auth-page .auth-card .auth-switch a {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}

.auth-page .auth-card .auth-switch a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.auth-page .auth-privacy {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1rem;
  line-height: 1.5;
}

/* 导航：auth 页仅保留品牌 + 登录/注册 */
.auth-page-nav .navbar-nav.me-auto {
  display: none;
}

.auth-page-nav .navbar-nav .nav-link.active {
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
}
