/* ===== 登入 / 註冊頁 ===== */

.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* 背景的撲克元素裝飾（CSS 純色，效能最好） */
.login-bg::before,
.login-bg::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.login-bg::before {
  top: -100px; left: -100px;
  background: rgba(212,175,55,0.12);
}
.login-bg::after {
  bottom: -120px; right: -120px;
  background: rgba(212,175,55,0.08);
}

.login-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 40px 28px;
  background:
    linear-gradient(160deg, #1c1612 0%, #0a0807 100%);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 14px;
  box-shadow:
    0 0 60px rgba(212,175,55,0.10),
    0 12px 40px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(212,175,55,0.18);
}

/* 卡片角落金色光點 */
.login-wrap::before,
.login-wrap::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
}
.login-wrap::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-top-left-radius: 14px;
  box-shadow: -2px -2px 14px rgba(212,175,55,0.4);
}
.login-wrap::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-bottom-right-radius: 14px;
  box-shadow: 2px 2px 14px rgba(212,175,55,0.4);
}

/* 品牌頁眉 */
.brand-header { text-align: center; margin-bottom: 18px; }
.brand-header img.logo-mark {
  width: 64px; height: 64px;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.5));
}
.brand-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 6px;
  font-weight: 900;
  background: var(--gold-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(212,175,55,0.3);
}
.brand-header .subtitle {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 8px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}
.tab {
  flex: 1;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 4px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab:hover:not(.active) {
  color: var(--gold-light);
  background: transparent;
  box-shadow: none;
}
.tab.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}

/* 表單 */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.auth-form.active { display: flex; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.auth-form input {
  padding: 11px 14px;
  font-size: 14px;
}
.auth-form button[type="submit"] {
  margin-top: 12px;
  padding: 13px;
  background: var(--gold-button-gradient);
  color: #0a0807;
  border: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 8px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.auth-form button[type="submit"]:hover {
  box-shadow: 0 4px 24px rgba(212,175,55,0.7), 0 0 30px rgba(255,215,0,0.4);
  color: #0a0807;
}

/* ===== LINE 登入按鈕 ===== */
.line-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: #06C755;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.line-login-btn:hover { background: #05B14B; box-shadow: 0 4px 16px rgba(6,199,85,0.4); }
.line-login-btn:disabled { background: #888; cursor: not-allowed; }
.line-login-btn .line-logo {
  background: #ffffff;
  color: #06C755;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .login-bg { padding: 16px; }
  .login-wrap { padding: 26px 22px 22px; border-radius: 12px; }
  .brand-header img.logo-mark { width: 56px; height: 56px; }
  .brand-header h1 { font-size: 24px; letter-spacing: 4px; }
  .brand-header .subtitle { font-size: 10px; letter-spacing: 5px; }
  .tabs { margin-bottom: 18px; }
  .tab { font-size: 13px; letter-spacing: 3px; padding: 11px 0; }
  .auth-form { gap: 12px; }
  .auth-form input { padding: 12px 14px; font-size: 15px; }
  .auth-form button[type="submit"] { padding: 14px; letter-spacing: 6px; }
  .login-wrap::before, .login-wrap::after { width: 40px; height: 40px; }
}
