/**
 * AegisAuth 开发者登录页样式
 * 风格：技术冷调（青玉 + 科技蓝点缀）
 * 主色 #2B6C6F 青玉 / 强调 #1890FF 科技蓝
 * 依赖：static/common/css/theme.css（提供 CSS 变量）
 */

/* ============ 页面背景 ============ */
.auth-page-developer {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 20%, rgba(24, 144, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(43, 108, 111, 0.18), transparent 50%),
    linear-gradient(135deg, #0c1f24 0%, #102a30 50%, #1F5052 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary, rgba(0, 0, 0, 0.85));
}

/* ============ 登录卡片容器 ============ */
.auth-page-developer .auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-page-developer .auth-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 36px 32px 28px;
  overflow: hidden;
}

.auth-page-developer .auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2B6C6F 0%, #1890FF 100%);
}

/* ============ 品牌区 ============ */
.auth-page-developer .auth-brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-page-developer .auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a3a3d;
}

.auth-page-developer .auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2B6C6F, #1890FF);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-page-developer .auth-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-page-developer .auth-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============ 标题区 ============ */
.auth-page-developer .auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-page-developer .auth-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: #1a3a3d;
}

.auth-page-developer .auth-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, rgba(0, 0, 0, 0.45));
}

/* ============ 表单 ============ */
.auth-page-developer .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-page-developer .auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-page-developer .auth-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-regular, rgba(0, 0, 0, 0.65));
}

.auth-page-developer .auth-form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--text-primary, rgba(0, 0, 0, 0.85));
  background: #ffffff;
  border: 1px solid var(--border-base, #DCDFE6);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-page-developer .auth-form-control::placeholder {
  color: var(--text-placeholder, rgba(0, 0, 0, 0.25));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.auth-page-developer .auth-form-control:focus {
  border-color: #1890FF;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

/* ============ 验证码区 ============ */
.auth-page-developer .auth-captcha-group .captcha-widget-container {
  min-height: 40px;
}

/* ============ 错误提示 ============ */
.auth-page-developer .auth-error {
  padding: 10px 14px;
  font-size: 13px;
  color: #ffffff;
  background: var(--color-error, #FF4D4F);
  border-radius: 8px;
  line-height: 1.5;
  word-break: break-word;
}

/* 隐藏状态（替代内联 style="display:none;"） */
.auth-error.is-hidden {
  display: none;
}

/* ============ 提交按钮 ============ */
.auth-page-developer .auth-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-page-developer .auth-btn-primary {
  background: linear-gradient(135deg, #2B6C6F, #1890FF);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.auth-page-developer .auth-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3A8A8D, #40A9FF);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.auth-page-developer .auth-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-page-developer .auth-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ============ 页脚 ============ */
.auth-page-developer .auth-footer {
  text-align: center;
  margin-top: 22px;
}

.auth-page-developer .auth-back-home {
  font-size: 13px;
  color: var(--text-secondary, rgba(0, 0, 0, 0.45));
  text-decoration: none;
  transition: color 0.2s;
}

.auth-page-developer .auth-back-home:hover {
  color: #1890FF;
}

/* ============ 响应式 ============ */
@media (max-width: 480px) {
  .auth-page-developer {
    padding: 16px 12px;
  }

  .auth-page-developer .auth-card {
    padding: 28px 20px 22px;
    border-radius: 12px;
  }

  .auth-page-developer .auth-title {
    font-size: 20px;
  }
}
