/* ==========================================================================
   独立登录页高保真样式 (宣纸暖白·特大圆角·细体字重优化)
   ========================================================================== */

.login-viewport {
  min-height: 100vh;
  background-color: var(--bg-rice-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-hero);
  padding: 40px 36px;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: loginFadeIn 300ms var(--ease-spring);
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo-cube {
  width: 48px;
  height: 48px;
  background-color: var(--herb-green-light);
  border: 1px solid var(--herb-green-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.login-app-name {
  font-size: var(--font-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.login-app-desc {
  font-size: var(--font-sm);
  font-weight: var(--weight-thin);
  color: var(--text-muted);
}

.login-install-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.login-install-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.login-install-btn:hover {
  background-color: var(--bg-menu-active);
  border-color: var(--primary-herb);
  color: var(--primary-herb);
}

.login-install-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -12px;
  padding: 10px 12px;
  border: 1px solid var(--herb-green-border);
  border-radius: var(--radius-md);
  background-color: var(--herb-green-light);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.45;
}

.login-install-help button {
  border: none;
  background: transparent;
  color: var(--primary-herb);
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  white-space: nowrap;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-label {
  font-size: var(--font-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.login-input {
  height: var(--btn-height-md);
  padding: 0 16px;
  font-size: var(--font-md);
  font-weight: var(--weight-regular);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-rice-paper);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-smooth);
}

.login-input::placeholder {
  font-weight: var(--weight-thin);
  color: var(--text-muted);
}

.login-input:focus {
  border-color: var(--text-primary);
  background-color: #FFFFFF;
}

.btn-login-submit {
  height: var(--btn-height-lg);
  background-color: var(--accent-gold);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--font-md);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 167, 74, 0.28);
  transition: all var(--transition-smooth);
  margin-top: 6px;
}

.btn-login-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-login-submit:hover:not(:disabled) {
  background-color: var(--accent-gold-hover);
}

.btn-login-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 快捷测试账号点选标签 */
.quick-accounts-section {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-accounts-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: var(--weight-thin);
}

.quick-accounts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-chip {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-chip:hover {
  background-color: var(--bg-menu-active);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
