﻿/* WhyKaiX 登录页 - 与管理后台配套 */
:root {
    --主色: #4F5BFF;
    --主色亮: #7B85FF;
    --文字: #131A33;
    --次要文字: #8a90a6;
    --边框: rgba(255, 255, 255, 0.16);
    --错误: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
    background: linear-gradient(135deg, #0B1020 0%, #2A31A8 55%, #4F5BFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.登录卡片 {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    border: 1px solid var(--边框);
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    text-align: center;
    color: #fff;
}

.标志 { font-size: 3rem; margin-bottom: 6px; }

h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: 1px; }

.副标题 {
    color: #a8aede;
    margin: 6px 0 30px;
    font-size: 0.9rem;
}

.方式切换 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 22px;
}

.方式按钮 {
    background: none;
    border: none;
    color: #a8aede;
    padding: 9px 0;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.方式按钮.当前 {
    background: linear-gradient(135deg, var(--主色), #22D3EE);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(79, 91, 255, 0.4);
}

.登录面板 { display: none; }
.登录面板.当前 { display: block; animation: 淡入 0.25s ease; }
@keyframes 淡入 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--边框);
    border-radius: 12px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder { color: #8a90a6; }

input:focus { border-color: var(--主色亮); box-shadow: 0 0 0 3px rgba(79, 91, 255, 0.25); background: rgba(255,255,255,0.14); }

.主登录按钮 {
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--主色), #22D3EE);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.主登录按钮:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(79, 91, 255, 0.5); }
.主登录按钮:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.QQ登录按钮 {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--边框);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.QQ登录按钮:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.QQ登录按钮:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.QQ图标 { font-size: 1.3rem; }

.QQ提示 {
    color: #8a90a6;
    font-size: 0.75rem;
    margin-top: 14px;
    line-height: 1.7;
}

.错误提示 {
    color: var(--错误);
    font-size: 0.85rem;
    margin-top: 14px;
    min-height: 20px;
}

/* ===== QQ 手动输入登录 ===== */
.QQ号输入 {
  width: 100%;
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.QQ号输入:focus { border-color: #4ea3ff; background: rgba(255, 255, 255, 0.12); }
.QQ号输入::placeholder { color: rgba(255, 255, 255, 0.4); }
.QQ分隔线 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}
.QQ分隔线::before, .QQ分隔线::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
#QQ号登录按钮 { margin-top: 10px; }

/* ===== WhyKaiX 品牌标识 ===== */
.标志 { font-size: 0; }
.标志 img { width: 68px; height: 68px; border-radius: 20px; display: block; margin: 0 auto; }

/* ===== 身份切换（站长 / 租户） ===== */
.登录身份切换 {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
}
.登录身份切换 span {
    color: #8fa0ff;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px dashed rgba(143, 160, 255, 0.45);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.登录身份切换 span:hover { color: #b9c3ff; border-color: #b9c3ff; }
#租户面板 { display: none; }
#租户面板.当前 { display: block; animation: 淡入 0.25s ease; }
#租户面板 input + input { margin-top: 12px; }
#租户面板.当前 + .登录身份切换 { margin-top: 14px; }
/* ===== 输入框间距（账号 / 密码上下不再粘在一起）===== */
.登录面板 input + input { margin-top: 12px; }
.登录面板 input:first-child { margin-top: 0; }
/* 验证码行与上方密码框的间距（防止粘在一起）*/
.登录面板 #验证码行 { margin-top: 12px; }
