/* Sign-in page. Uses the app's default (Sakura) palette from styles.css
   so the first screen people see matches the bookshelf behind it. */
:root {
	--bg-main: #edafb8;
	--bg-secondary: #dc9fa8;
	--bg-soft: #f6c2ca;
	--panel: #ec9da9;
	--accent: #44001a;
	--app-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	display: grid;
	place-items: center;
	padding: 16px;
	background-color: var(--bg-main);
	background-image: radial-gradient(circle at 20% 15%, var(--bg-soft) 0, transparent 45%),
		radial-gradient(circle at 85% 90%, var(--bg-secondary) 0, transparent 50%);
	font-family: var(--app-font);
	color: var(--accent);
}

.signin-card {
	width: min(440px, 100%);
	background: var(--bg-secondary);
	border: 5px solid var(--bg-soft);
	border-radius: 18px;
	padding: 28px 32px 22px;
	text-align: center;
	box-shadow: 0 18px 40px rgba(68, 0, 26, 0.18);
}

.signin-inkwell {
	width: 120px;
	height: 92px;
	margin: 0 auto 4px;
	background-color: var(--accent);
	-webkit-mask: url('../assets/images/Ink Well.png') no-repeat left center / cover;
	mask: url('../assets/images/Ink Well.png') no-repeat left center / cover;
}

.signin-title {
	height: 92px;
	margin: 0 0 10px;
	background-color: var(--accent);
	-webkit-mask: url('../assets/images/Ink Title.png') no-repeat center / contain;
	mask: url('../assets/images/Ink Title.png') no-repeat center / contain;
}

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.signin-lede {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
}

.signin-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}

.google-button-slot:empty { display: none; }

.signin-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 22px;
	border-radius: 999px;
	background: #fff;
	color: #1f1f1f;
	border: 1px solid #747775;
	font: 600 15px/1 var(--app-font);
	text-decoration: none;
	cursor: pointer;
}
.signin-button:hover { background: #f8f8f8; }
.signin-button:focus-visible, .signin-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.g-logo {
	width: 18px; height: 18px;
	background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0 100%);
	border-radius: 50%;
}

.signin-link {
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
}

.signin-error {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--bg-soft);
	border: 2px solid var(--accent);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	line-height: 1.45;
}

.signin-setup {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--bg-soft);
	text-align: left;
	font-size: 14px;
	line-height: 1.45;
}
.signin-setup h2 { margin: 0 0 6px; font-size: 16px; }
.signin-setup code { font-size: 13px; }

.signin-details {
	margin-top: 22px;
	text-align: left;
	font-size: 13px;
	line-height: 1.5;
}
.signin-details summary { cursor: pointer; font-weight: 700; }
.signin-details p { margin: 8px 0 0; }

[hidden] { display: none !important; }
