/* ============================================================
   Angus Inst. — 学员登录 / 申请账号页（Angus Star 星空）
   按 reference/login-design.png 复刻：
   全屏背景 fixed cover · 磨砂玻璃卡片 rgba(237,243,255,.86)+blur(18px)
   输入框 50px/圆角14 · 主按钮 58px/渐变 #3695FF→#2860ED
   ============================================================ */

html, body { margin: 0; padding: 0; }

body.star-login {
	min-height: 100vh;
	min-height: 100svh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	color: #173778;
	background: #1b2a5e; /* 背景图加载前的兜底底色 */
	-webkit-font-smoothing: antialiased;
}
body.star-login #wpadminbar { display: none !important; }
/* 登录页是专注页面：不显示站点小助手 / 迷你播放器 */
body.star-login .site-pet,
body.star-login .angus-mini,
body.star-login .angus-player { display: none !important; }

.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 全屏背景 ---------- */
.sl-bg {
	position: fixed; inset: 0; z-index: -1;
	background: url('../login/login-background.jpg') center / cover no-repeat #1b2a5e;
}
/* 3:2 背景（1536×1024）在 16:9 屏上裁上下边缘：锚点偏下保住左下人物 */
@media (min-aspect-ratio: 16/10) {
	.sl-bg { background-position: center 42%; }
}

/* ---------- 顶栏：左上胶囊 + 右上品牌牌 ---------- */
.sl-topbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 10;
	display: flex; align-items: flex-start; justify-content: space-between;
	padding: 26px 28px 0;
	pointer-events: none;
}
.sl-topbar > * { pointer-events: auto; }

.sl-pill {
	display: inline-flex; align-items: center;
	height: 42px; padding: 0 18px;
	border-radius: 999px;
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.35);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	color: #f4f8ff; font-size: 14px; font-weight: 600;
	text-decoration: none;
	transition: background .16s ease;
}
.sl-pill:hover { background: rgba(255,255,255,.26); }

.sl-brand {
	display: flex; align-items: center; justify-content: center;
	height: 84px; padding: 12px 22px;
	border-radius: 18px;
	background: rgba(214,232,255,.72);
	border: 1px solid rgba(255,255,255,.75);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 0 22px rgba(140,190,255,.35), 0 4px 14px rgba(10,30,80,.18);
}
.sl-brand img { height: 60px; width: auto; display: block; }

/* ---------- 中央主列 ---------- */
.sl-main {
	min-height: 100vh;
	min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	padding: 56px 20px 48px;
	box-sizing: border-box;
}

.sl-title {
	width: min(410px, calc(100vw - 48px));
	height: auto;
	object-fit: contain;
	aspect-ratio: 900 / 675;
	filter: drop-shadow(0 10px 28px rgba(20,40,120,.45));
	animation: sl-breathe 6s ease-in-out infinite;
}
@keyframes sl-breathe {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
	.sl-title { animation: none; }
}

.sl-sub {
	margin: 10px 0 22px;
	color: #f6f9ff;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 2px;
	text-shadow: 0 2px 10px rgba(15,35,90,.55);
	text-align: center;
}

/* ---------- 磨砂玻璃卡片 ---------- */
.sl-card {
	width: min(416px, calc(100vw - 40px));
	box-sizing: border-box;
	padding: 26px 30px 24px;
	border-radius: 26px;
	background: rgba(237,243,255,.86);
	border: 1px solid rgba(255,255,255,.8);
	backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	box-shadow: 0 10px 40px rgba(10,30,90,.28), 0 2px 8px rgba(10,30,90,.12);
}

.sl-tabs {
	display: flex; gap: 6px;
	background: rgba(23,55,120,.08);
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 18px;
}
.sl-tab {
	flex: 1;
	height: 40px;
	border: 0; border-radius: 9px;
	background: transparent;
	color: #4a5f92;
	font-family: inherit; font-size: 14.5px; font-weight: 700;
	cursor: pointer;
	transition: all .16s ease;
}
.sl-tab[aria-selected="true"] {
	background: #fff;
	color: #173778;
	box-shadow: 0 2px 8px rgba(23,55,120,.14);
}

/* 提示条 */
.sl-msg {
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	line-height: 1.55;
	margin-bottom: 14px;
}
.sl-msg.err { background: #fdecec; color: #a5352e; border: 1px solid #f3c4c0; }
.sl-msg.ok  { background: #e5f6ea; color: #22633c; border: 1px solid #bfe5cb; }

/* ---------- 输入框 ---------- */
.sl-field {
	position: relative;
	margin-bottom: 12px;
}
.sl-ico {
	position: absolute; left: 15px; top: 50%;
	transform: translateY(-50%);
	width: 20px; height: 20px;
	color: #8293be;
	pointer-events: none;
}
.sl-ico svg { width: 100%; height: 100%; }

.sl-field input[type="text"],
.sl-field input[type="password"],
.sl-field input[type="email"],
.sl-field input[type="tel"] {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	padding: 0 46px 0 44px;
	border-radius: 14px;
	border: 1px solid #c9d7f2;
	background: rgba(255,255,255,.85);
	font-family: inherit; font-size: 15px;
	color: #173778;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sl-field input::placeholder { color: #8293be; }
.sl-field input:focus {
	border-color: #3695ff;
	box-shadow: 0 0 0 3px rgba(54,149,255,.18);
	background: #fff;
}

/* 密码可见切换 */
.sl-eye {
	position: absolute; right: 8px; top: 50%;
	transform: translateY(-50%);
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 10px;
	background: transparent; color: #8293be;
	cursor: pointer;
}
.sl-eye svg { width: 19px; height: 19px; }
.sl-eye:hover, .sl-eye.on { color: #3695ff; }

/* 记住我 / 忘记密码 */
.sl-row {
	display: flex; align-items: center; justify-content: space-between;
	margin: 2px 2px 16px;
}
.sl-check {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 13.5px; color: #4a5f92;
	cursor: pointer; user-select: none;
}
.sl-check input { accent-color: #2860ed; width: 15px; height: 15px; }
.sl-link { font-size: 13.5px; color: #2860ed; text-decoration: none; }
.sl-link:hover { text-decoration: underline; }

/* ---------- 主按钮 ---------- */
.sl-submit {
	box-sizing: border-box;
	width: 100%;
	height: 58px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #3695ff, #2860ed);
	color: #fff;
	font-family: inherit; font-size: 16.5px; font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(40,96,237,.38);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.sl-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(40,96,237,.46); }
.sl-submit:focus-visible { outline: 3px solid rgba(54,149,255,.5); outline-offset: 2px; }
.sl-submit:disabled { opacity: .65; cursor: default; transform: none; filter: none; }

.sl-note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: #7d8fb8;
}
.sl-note-btn {
	border: 0; background: none; padding: 0;
	font-family: inherit; font-size: 12.5px; font-weight: 700;
	color: #2860ed; cursor: pointer;
}
.sl-note-btn:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
	.sl-topbar { padding: 16px 16px 0; }
	.sl-brand { height: 64px; padding: 10px 16px; border-radius: 14px; }
	.sl-brand img { height: 44px; }
	.sl-main { padding: 108px 18px 42px; justify-content: flex-start; }
	.sl-title { width: min(300px, calc(100vw - 56px)); }
	.sl-sub { font-size: 16px; margin: 6px 0 18px; letter-spacing: 1.5px; }
	.sl-card { padding: 20px 22px 20px; border-radius: 22px; }
}
/* 矮屏（横屏手机）：缩小标题保表单 */
@media (max-height: 700px) and (min-width: 861px) {
	.sl-main { padding-top: 30px; }
	.sl-title { width: min(300px, calc(100vw - 60px)); }
	.sl-sub { margin: 6px 0 14px; }
}
