@font-face { font-family:'Roboto'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/Roboto-400.woff2') format('woff2'); }
@font-face { font-family:'Roboto'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/Roboto-500.woff2') format('woff2'); }
@font-face { font-family:'Roboto'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/Roboto-700.woff2') format('woff2'); }
@font-face { font-family:'Roboto'; font-style:normal; font-weight:900; font-display:swap; src:url('/fonts/Roboto-900.woff2') format('woff2'); }

:root {
	/* brand core */
	--creme: #FFFDED;
	--laranja: #EA6D24;
	--preto: #000000;

	/* cream / paper scale */
	--paper: #FFFDED;
	--paper-2: #FAF6E0;
	--paper-3: #F2ECD2;
	--paper-line: #E6DFC2;

	/* ink scale */
	--ink: #000000;
	--ink-2: #2C2A24;
	--ink-3: #57544A;
	--ink-4: #87836F;

	/* orange scale */
	--orange-700: #B0500F;
	--orange-600: #CC5C18;
	--orange-500: #EA6D24;

	--danger: #D63B26;

	/* signature look */
	--stroke: 2.5px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;
	--shadow-sticker: 4px 4px 0 0 var(--ink);
	--shadow-sticker-lg: 6px 6px 0 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	background: var(--paper);
	color: var(--ink);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.login-wrap {
	width: 100%;
	max-width: 380px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}

.hero {
	width: 220px;
	max-width: 70%;
	height: auto;
}

.card {
	width: 100%;
	background: #fff;
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sticker-lg);
	padding: 2rem 1.75rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.card h1 {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
}

.card p.desc {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--ink-3);
	line-height: 1.5;
}

button#google-signin {
	font: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 1.25rem;
	background: #fff;
	color: var(--ink);
	border: var(--stroke) solid var(--ink);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-sticker);
	cursor: pointer;
	transition: transform .12s ease-out, box-shadow .12s ease-out, background .12s ease-out;
}
button#google-signin:hover {
	background: var(--paper-2);
	transform: translate(-1px, -1px);
	box-shadow: 5px 5px 0 0 var(--ink);
}
button#google-signin:active:not(:disabled) {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 0 var(--ink);
}
button#google-signin:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
	box-shadow: var(--shadow-sticker);
}
button#google-signin .g-icon { flex: none; }

button#google-signin .spinner {
	display: none;
	flex: none;
	width: 16px;
	height: 16px;
	border: 2px solid var(--paper-3);
	border-top-color: var(--ink);
	border-radius: 50%;
	animation: spin .7s linear infinite;
}
button#google-signin.is-loading .g-icon { display: none; }
button#google-signin.is-loading .spinner { display: inline-block; }

@keyframes spin {
	to { transform: rotate(360deg); }
}

#error {
	color: var(--danger);
	font-size: 0.8rem;
	font-weight: 500;
	min-height: 1.1em;
}

.legal {
	font-size: 0.75rem;
	color: var(--ink-4);
	text-align: center;
	line-height: 1.5;
}
.legal a {
	color: var(--ink-3);
	text-decoration: none;
	border-bottom: 1px dashed var(--ink-4);
}
.legal a:hover {
	color: var(--orange-700);
	border-bottom-color: var(--orange-700);
}
