:root {
	--blue: #7db5ff;
	--blue-deep: #6e9fe0;
	--blue-press: #628dc7;
	--blue-tint: #eff6ff;
	--blue-mist: #f4f8fd;
	--ink: #0f1419;
	--mute: #536471;
	--line: #e7eef5;
	--white: #ffffff;
	--danger: #d6365b;
	--font: "Outfit", "PingFang TC", "Hiragino Sans GB", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--radius-xl: 36px;
	--radius-pill: 999px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	font-family: var(--font);
	color: var(--ink);
	background: var(--blue-mist);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.page-login {
	min-height: 100dvh;
	position: relative;
	overflow: hidden;
}

.atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(980px 680px at 18% 22%, rgba(125, 181, 255, 0.38), transparent 64%),
		radial-gradient(720px 520px at 42% 78%, rgba(110, 159, 224, 0.16), transparent 58%),
		linear-gradient(180deg, #f7fbff 0%, #eef5fc 48%, #f8fafc 100%);
}

.arc {
	position: absolute;
	border-radius: 50%;
	border: 1.5px solid rgba(125, 181, 255, 0.28);
	opacity: 0.9;
}

.arc-a {
	width: min(58vw, 640px);
	height: min(58vw, 640px);
	left: -8%;
	top: -18%;
	animation: drift-a 18s var(--ease) infinite alternate;
}

.arc-b {
	width: min(46vw, 500px);
	height: min(46vw, 500px);
	left: 18%;
	bottom: -20%;
	border-color: rgba(110, 159, 224, 0.22);
	animation: drift-b 22s var(--ease) infinite alternate;
}

.arc-c {
	width: min(28vw, 280px);
	height: min(28vw, 280px);
	left: 36%;
	top: 18%;
	border-color: rgba(125, 181, 255, 0.18);
	animation: drift-c 14s var(--ease) infinite alternate;
}

.blob {
	position: absolute;
	width: min(36vw, 340px);
	height: min(36vw, 340px);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, rgba(125, 181, 255, 0.35), rgba(125, 181, 255, 0));
	filter: blur(8px);
	left: 12%;
	bottom: 14%;
	animation: breathe 10s ease-in-out infinite;
}

.login-layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(420px, 42vw);
	width: 100%;
	min-height: 100dvh;
}

.showcase {
	min-height: 100%;
}

.login-shell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 18px;
	width: 100%;
	max-width: none;
	padding: 48px clamp(36px, 4.5vw, 64px);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
	border-left: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow: -24px 0 60px rgba(55, 92, 140, 0.06);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	animation: rise 0.8s var(--ease) both;
}

.brand-lockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 4px;
	animation: rise 0.85s var(--ease) 0.05s both;
}

.brand-logo {
	width: min(72vw, 220px);
	height: auto;
	object-fit: contain;
	display: block;
	/* logo asset is white; tint to brand blue like v1 */
	filter:
		brightness(0) saturate(100%) invert(60%) sepia(25%) saturate(1200%) hue-rotate(186deg) brightness(112%) contrast(100%)
		drop-shadow(0 10px 24px rgba(125, 181, 255, 0.22));
}

.brand-sub {
	margin: 0;
	font-size: 14px;
	font-weight: 560;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-deep);
}

.panel {
	border-radius: var(--radius-xl);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 18px 50px rgba(55, 92, 140, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	padding: 34px 30px 30px;
	animation: rise 0.9s var(--ease) 0.12s both;
}

.panel-copy {
	text-align: center;
	margin-bottom: 28px;
}

.panel-copy h1 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.panel-copy p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mute);
	font-weight: 450;
}

.btn-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 54px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 620;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition:
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease),
		border-color 0.22s var(--ease),
		background 0.22s var(--ease);
	box-shadow: 0 8px 24px rgba(55, 92, 140, 0.06);
}

.btn-google:hover {
	transform: translateY(-1px);
	border-color: #d5e3f2;
	background: #fcfeff;
	box-shadow: 0 14px 30px rgba(55, 92, 140, 0.1);
}

.btn-google:active {
	transform: translateY(0);
	background: #f5f9fd;
}

.btn-google svg {
	flex-shrink: 0;
}

.hint {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 18px;
	background: rgba(214, 54, 91, 0.08);
	color: var(--danger);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
	color: var(--mute);
	font-size: 12px;
	letter-spacing: 0.02em;
	animation: rise 0.9s var(--ease) 0.22s both;
}

.meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--blue);
	opacity: 0.7;
}

.home-shell {
	text-align: center;
}

.home-card {
	border-radius: var(--radius-xl);
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 18px 50px rgba(55, 92, 140, 0.08);
	backdrop-filter: blur(18px);
	padding: 28px 26px;
}

.home-card h1 {
	margin: 0 0 8px;
	font-size: 22px;
	letter-spacing: -0.03em;
}

.home-card p {
	margin: 0;
	color: var(--mute);
	font-size: 15px;
	line-height: 1.55;
}

.user-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 22px 0 18px;
}

.user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--blue-tint);
	border: 2px solid rgba(125, 181, 255, 0.35);
}

.user-meta {
	text-align: left;
}

.user-meta strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.02em;
}

.user-meta span {
	font-size: 13px;
	color: var(--mute);
}

.btn-soft {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	border-radius: var(--radius-pill);
	background: var(--blue);
	color: var(--white);
	font-size: 14px;
	font-weight: 650;
	border: 0;
	cursor: pointer;
	transition:
		background 0.2s var(--ease),
		transform 0.2s var(--ease);
}

.btn-soft:hover {
	background: var(--blue-deep);
	transform: translateY(-1px);
}

.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 18px;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--mute);
	font-size: 14px;
	font-weight: 560;
	border: 0;
	cursor: pointer;
}

.actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

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

@keyframes drift-a {
	from {
		transform: translate3d(0, 0, 0) rotate(0deg);
	}
	to {
		transform: translate3d(18px, 24px, 0) rotate(8deg);
	}
}

@keyframes drift-b {
	from {
		transform: translate3d(0, 0, 0) rotate(0deg);
	}
	to {
		transform: translate3d(-16px, -20px, 0) rotate(-6deg);
	}
}

@keyframes drift-c {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(-10px, 14px, 0) scale(1.04);
	}
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.55;
		transform: scale(1);
	}
	50% {
		opacity: 0.85;
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 960px) {
	.login-layout {
		grid-template-columns: 1fr;
	}

	.showcase {
		display: none;
	}

	.login-shell {
		min-height: 100dvh;
		padding: 32px 24px;
		border-left: 0;
		box-shadow: none;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		max-width: 440px;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.panel {
		padding: 28px 22px 24px;
		border-radius: 30px;
	}

	.brand-logo {
		width: min(78vw, 188px);
	}

	.login-shell {
		padding: 28px 18px;
	}
}
