/* ============================================================================
 * 鱼控安卓远程系统 · 独立登录页（login.css）
 * 布局：居中双栏大卡（左品牌 / 右表单），四角装饰线，深空背景 + 光晕
 * ========================================================================== */

#yk-login {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(1100px 700px at 18% 12%, rgba(47, 107, 255, .18), transparent 62%),
    radial-gradient(900px 620px at 84% 88%, rgba(0, 209, 193, .12), transparent 60%),
    #05070d;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  overflow: auto;
}

#yk-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 78%);
  pointer-events: none;
}

html.yk-authed #yk-login { display: none !important; }

/* ---------- 卡片 ---------- */
.yk-card {
  position: relative;
  display: grid;
  grid-template-columns: 400px 1fr;
  width: min(980px, 100%);
  min-height: 552px;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid rgba(47, 107, 255, .16);
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 0 90px -30px rgba(47, 107, 255, .55);
}

/* 四角装饰 */
.yk-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 209, 193, .55);
  pointer-events: none;
}
.yk-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.yk-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.yk-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.yk-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

/* ---------- 左品牌区 ---------- */
.yk-left {
  position: relative;
  padding: 44px 34px 34px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(560px 420px at 50% 8%, rgba(47, 107, 255, .30), transparent 68%),
    linear-gradient(180deg, #0d1526 0%, #080c15 100%);
  border-right: 1px solid rgba(47, 107, 255, .10);
}

.yk-left-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 209, 193, .30) 0%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.yk-badge {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #1a2a4d, #070c18 72%);
  border: 1px solid rgba(0, 209, 193, .45);
  box-shadow: 0 0 0 6px rgba(47, 107, 255, .08), 0 18px 46px -16px rgba(0, 209, 193, .75);
}
.yk-badge img { width: 62px; height: 62px; border-radius: 50%; }
.yk-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 107, 255, .35);
  animation: yk-spin 18s linear infinite;
}
@keyframes yk-spin { to { transform: rotate(360deg); } }

.yk-brand-title {
  position: relative;
  text-align: center;
  font-size: 54px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #ffffff 0%, #a9c6ff 46%, #2f6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(47, 107, 255, .45));
}
.yk-brand-ver {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-top: 4px;
  background: linear-gradient(90deg, #00d1c1, #2f6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yk-brand-sub {
  position: relative;
  margin: 14px auto 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .26em;
  color: #61729a;
  text-transform: uppercase;
}

.yk-divider {
  position: relative;
  height: 1px;
  margin: 22px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, .55), rgba(0, 209, 193, .55), transparent);
}
.yk-divider i {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: #00d1c1;
  box-shadow: 0 0 12px rgba(0, 209, 193, .9);
}

.yk-feats { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.yk-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(47, 107, 255, .12);
  color: #b9c8e6;
  font-size: 12.5px;
  letter-spacing: .02em;
  transition: border-color .2s, background .2s;
}
.yk-feat:hover { border-color: rgba(0, 209, 193, .4); background: rgba(0, 209, 193, .05); }
.yk-feat svg { width: 15px; height: 15px; flex: 0 0 auto; color: #00d1c1; }

.yk-left-foot {
  position: relative;
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .18em;
  color: #3c4a68;
}

/* ---------- 右表单区 ---------- */
.yk-right {
  position: relative;
  padding: 52px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #0a0f1b 0%, #070b14 100%);
}

.yk-right h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #f2f6ff;
  letter-spacing: .04em;
}
.yk-right .yk-hint {
  margin: 8px 0 30px;
  font-size: 12.5px;
  color: #66759a;
  letter-spacing: .02em;
}

.yk-field { position: relative; margin-bottom: 16px; }
.yk-field .yk-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #4d5f85;
  pointer-events: none;
}
.yk-field input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 44px 0 40px;
  border-radius: 9px;
  border: 1px solid #1b2740;
  background: #0b1220;
  color: #eaf0ff;
  font-size: 13.5px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.yk-field input::placeholder { color: #4a5877; }
.yk-field input:focus {
  border-color: #2f6bff;
  background: #0d1526;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .16);
}
.yk-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4d5f85;
  cursor: pointer;
  border-radius: 6px;
}
.yk-eye:hover { color: #00d1c1; background: rgba(0, 209, 193, .08); }
.yk-eye svg { width: 15px; height: 15px; }

.yk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 12px;
  color: #7d8cb0;
}
.yk-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.yk-row input[type="checkbox"] { width: 13px; height: 13px; accent-color: #2f6bff; cursor: pointer; }
.yk-row a { color: #4f8bff; text-decoration: none; }
.yk-row a:hover { color: #00d1c1; }

.yk-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #fff;
  background: linear-gradient(92deg, #2f6bff 0%, #3f79ff 55%, #00d1c1 140%);
  box-shadow: 0 14px 34px -14px rgba(47, 107, 255, .95);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.yk-submit:hover { filter: brightness(1.07); box-shadow: 0 18px 44px -14px rgba(47, 107, 255, 1); }
.yk-submit:active { transform: translateY(1px); }
.yk-submit[disabled] { opacity: .62; cursor: not-allowed; filter: none; }

.yk-error {
  display: none;
  margin: -4px 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #ff9aa5;
  background: rgba(255, 77, 94, .1);
  border: 1px solid rgba(255, 77, 94, .3);
}
.yk-error.on { display: block; }

.yk-right-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: #39465f;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .yk-card { grid-template-columns: 1fr; min-height: 0; }
  .yk-left { display: none; }
  .yk-right { padding: 40px 28px 32px; }
}
