@charset "UTF-8";

/* ============================================
   DD电竞 · 三角洲俱乐部 — 登录/注册页样式
   严格一比一还原设计稿（390×844）
   响应式：425px（手机） ~ 1920px+（PC）
   ============================================ */

/* ---------- 页面容器 ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* 背景装饰圆 */
.auth-page::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,0.08) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,0.06) 0%, transparent 70%);
  bottom: -60px; left: -60px;
  pointer-events: none;
}

/* ---------- 卡片 ---------- */
.auth-card {
  width: var(--card-width);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  animation: authCardIn .4s ease;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 标题区 ---------- */
.auth-app-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  color: #0F172A;
  text-align: center;
}

.auth-app-name span { color: #0F766E; }

.auth-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-gray);
  text-align: center;
}

/* ---------- 消息提示（PHP 服务端返回） ---------- */
.auth-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.auth-msg--error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.auth-msg--success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

/* ---------- 表单 ---------- */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.auth-form--register {
  gap: 12px;
}

/* ---------- 输入框 ---------- */
.auth-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrapper:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.auth-input-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-icon--eye {
  width: 20px;
  height: 20px;
}

.auth-input-icon--eye img {
  width: 20px;
  height: 20px;
}

.auth-input-icon img {
  width: 18px;
  height: 18px;
}

.auth-input {
  flex: 1;
  height: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-dark);
  background: transparent;
  border: none;
  outline: none;
}

.auth-input::placeholder {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
}

.auth-input--password {
  letter-spacing: 2px;
}

/* ---------- 角色切换 ---------- */
.auth-role-switch {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-pill-outer);
  padding: 3px;
  gap: 0;
}

.auth-role-pill {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.auth-role-pill--active {
  background: var(--green-primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--pill-shadow);
}

.auth-role-pill:not(.auth-role-pill--active) {
  background: transparent;
  color: var(--text-gray);
  font-weight: 400;
}

.auth-role-pill:hover:not(.auth-role-pill--active) {
  color: var(--green-primary);
}

/* ---------- 主按钮（登录/注册） ---------- */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg,#0F766E,#0D9488);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(15,118,110,0.3);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,118,110,0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

/* ---------- 底部链接 ---------- */
.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.auth-divider {
  width: 1px;
  height: 14px;
  background: var(--border-light);
  flex-shrink: 0;
}

.auth-link-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.auth-link-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--text-gray);
}

.auth-link-action {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: var(--green-primary);
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link-action:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* 注册页 links row（无分割线） */
.auth-links-row--register {
  gap: 4px;
}

/* ---------- Logo 圆形 ---------- */
.auth-logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,#0F766E,#0D9488);
  box-shadow: 0 4px 16px rgba(15,118,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-logo-circle img {
  width: 32px;
  height: 36px;
}

/* ============================================
   响应式 — PC 端（>= 768px）
   ============================================ */
@media (min-width: 768px) {
  .auth-page {
    background: linear-gradient(135deg, #F0F9F8 0%, #E8F5F3 50%, #F2F5F7 100%);
  }

  .auth-card {
    width: 420px;
    padding: 40px 44px 44px;
    gap: 20px;
    border-radius: 20px;
  }

  .auth-form { gap: 16px; }
  .auth-form--register { gap: 14px; }
  .auth-input-wrapper { height: 52px; padding: 0 16px; border-radius: 12px; }
  .auth-btn { height: 54px; font-size: 17px; }
  .auth-logo-circle { width: 80px; height: 80px; }
  .auth-logo-circle img { width: 36px; height: 40px; }
  .auth-app-name { font-size: 26px; }
}

/* ============================================
   大屏 PC 端（>= 1440px）
   ============================================ */
@media (min-width: 1440px) {
  .auth-card {
    width: 440px;
    padding: 36px 44px 44px;
    gap: 24px;
  }

  .auth-btn {
    height: 56px;
    font-size: 18px;
  }
}
