:root {
	--blue: #1da1f2;
	--blue-deep: #1991da;
	--ink: #0f1419;
	--mute: #536471;
	--line: #eff3f4;
	--white: #ffffff;
	--font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	overflow-x: hidden;
}

body.page-auth {
	min-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.page-auth::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

html:has(body.page-auth) {
	min-height: 100%;
}

.page-auth .sheet {
	min-height: calc(100dvh - 76px);
	overflow: visible;
}

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

.stage {
	position: fixed;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(29, 161, 242, 0.18);
	animation: drift 28s ease-in-out infinite;
}

.r1 {
	width: 520px;
	height: 520px;
	left: -160px;
	top: -180px;
}

.r2 {
	width: 740px;
	height: 740px;
	right: -280px;
	bottom: -320px;
	animation-duration: 36s;
	animation-delay: -8s;
	border-color: rgba(29, 161, 242, 0.12);
}

.r3 {
	width: 180px;
	height: 180px;
	right: 12%;
	top: 18%;
	animation-duration: 18s;
	border-color: rgba(29, 161, 242, 0.22);
}

.dot {
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--blue);
	opacity: 0.35;
	right: 18%;
	top: 22%;
	animation: pulse 3.6s ease-in-out infinite;
}

.nav,
.hero,
.sheet,
.dash {
	position: relative;
	z-index: 1;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 28px;
	animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand img {
	height: 28px;
	width: auto;
	max-width: 168px;
	object-fit: contain;
	display: block;
	filter: brightness(0) saturate(100%) invert(54%) sepia(98%) saturate(1956%) hue-rotate(180deg) brightness(102%) contrast(101%);
}

.brand-word {
	height: 22px;
	width: auto;
	display: block;
}

.brand b {
	font-size: 20px;
	letter-spacing: -0.03em;
}

.brand-sub {
	color: var(--mute);
	font-weight: 400;
	font-size: 15px;
}

.nav nav {
	display: flex;
	align-items: center;
	gap: 22px;
}

.nav nav a {
	color: var(--mute);
	font-size: 13px;
	transition: color 0.25s ease;
}

.nav nav a:hover {
	color: var(--ink);
}

.btn-ghost,
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition:
		background 0.22s var(--ease),
		color 0.22s var(--ease),
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease),
		border-color 0.22s var(--ease);
}

.btn-ghost {
	height: 36px;
	padding: 0 18px;
	border: 1px solid var(--line);
	color: var(--ink) !important;
	background: var(--white);
}

.btn-ghost:hover {
	border-color: #ccd6dd;
	transform: translateY(-1px);
}

.btn-primary {
	height: 48px;
	padding: 0 28px;
	background: var(--blue);
	color: var(--white);
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(29, 161, 242, 0.22);
}

.btn-primary:hover {
	background: var(--blue-deep);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(29, 161, 242, 0.28);
}

.hero {
	min-height: calc(100vh - 76px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 24px 96px;
}

.hero h1 {
	margin: 0;
	font-size: clamp(42px, 7vw, 72px);
	letter-spacing: -0.04em;
	line-height: 1.08;
	font-weight: 700;
	animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero h1 em {
	font-style: normal;
	color: var(--blue);
}

.hero p {
	margin: 18px 0 28px;
	font-size: 18px;
	font-weight: 700;
	animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero .btn-primary {
	animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.sheet {
	min-height: calc(100vh - 76px);
	min-height: calc(100dvh - 76px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px 80px;
	text-align: center;
}

.auth-card {
	width: 100%;
	max-width: 400px;
	padding: 40px 36px 44px;
	border-radius: 28px;
	background: var(--white);
	box-shadow:
		0 0 0 1px rgba(20, 23, 26, 0.04),
		0 20px 60px rgba(20, 23, 26, 0.08);
}

.auth-card h1 {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	animation: rise 0.7s var(--ease) both;
}

.auth-card > p {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--mute);
	animation: rise 0.7s var(--ease) 0.08s both;
}

.btn-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(20, 23, 26, 0.06);
	transition:
		background 0.22s var(--ease),
		border-color 0.22s var(--ease),
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease);
	animation: rise 0.7s var(--ease) 0.16s both;
}

.btn-google:hover {
	background: #f7f9f9;
	border-color: #dde4e8;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(20, 23, 26, 0.08);
}

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

.hint {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #e0245e;
}

.dash {
	max-width: 560px;
	margin: 12vh auto 0;
	padding: 0 24px;
	text-align: center;
	animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--line);
}

.dash h1 {
	margin: 18px 0 6px;
	font-size: 28px;
	letter-spacing: -0.03em;
}

.dash .mail {
	margin: 0;
	color: var(--mute);
	font-size: 14px;
}

.notice {
	margin: 36px auto 0;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	animation: breathe 4.5s ease-in-out infinite;
}

.notice strong {
	font-size: 16px;
}

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

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

@keyframes drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(18px, 12px, 0) scale(1.03);
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.28;
	}
	50% {
		transform: scale(1.35);
		opacity: 0.5;
	}
}

@keyframes breathe {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(29, 161, 242, 0);
	}
	50% {
		transform: scale(1.02);
		box-shadow: 0 0 0 12px rgba(29, 161, 242, 0.05);
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 32px 24px 36px;
		border-radius: 24px;
		box-shadow:
			0 0 0 1px rgba(20, 23, 26, 0.04),
			0 12px 40px rgba(20, 23, 26, 0.06);
	}

	.auth-card h1 {
		font-size: 24px;
	}
}

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