@charset "UTF-8";

/* Takeout Office — the sign-in page (signin.php)

   A page of its own, so a sheet of its own, as the guide's is: style.css
   lays out the app's window and is not loaded here.  The surfaces and
   the words are Office's (blueprint D16), by the same names and the same
   values, so the door looks like the house.  What differs between light
   and dark is the tokens, and no rule asks which scheme it is in. */

:root
{
	color-scheme: light;

	--surface-Backdrop: #95989e;
	--surface-Page:     #e4e5e7;
	--surface-Raised:   #ffffff;
	--surface-Sunken:   #d6d8dc;

	--color-Default:   #000;
	--color-Secondary: #444;
	--color-Selected:  #5a82ad;
	--color-OnSelected: #fff;
	--color-link:      #005f9e;
	--color-NavCursor: #14202e;
	--color-Refused:   #a3320b;

	--color-Tool-Border-Default: rgba( 0, 0, 0, 0.2 );
	--line-Row: rgba( 0, 0, 0, 0.2 );

	--shadow-Tool:    0 2px 4px -1px rgba( 4, 5, 8, 0.1 );
	--shadow-Massive: 0 4px 12px -4px rgba( 0, 2, 4, 0.5 );

	--base-font: system-ui, sans-serif;

	--width-Panel: 23rem;
}

@media ( prefers-color-scheme: dark )
{
	:root
	{
		color-scheme: dark;

		--surface-Backdrop: #0b0c0e;
		--surface-Page:     #232427;
		--surface-Raised:   #383a3f;
		--surface-Sunken:   #17181a;

		--color-Default:   #f2f3f5;
		--color-Secondary: #a9abb1;
		--color-Selected:  #4f7dab;
		--color-link:      #6ab0ee;
		--color-NavCursor: #fff;
		--color-Refused:   #ff9a76;

		--color-Tool-Border-Default: rgba( 255, 255, 255, 0.2 );
		--line-Row: rgba( 255, 255, 255, 0.2 );

		--shadow-Tool:    0 2px 4px -1px rgba( 0, 0, 0, 0.5 );
		--shadow-Massive: 0 6px 18px -4px rgba( 0, 0, 0, 0.8 );
	}
}

*
{
	box-sizing: border-box;
}

html
{
	height: 100%;
}

body
{
	min-height: 100%;
	margin: 0;
	padding: 12vh 1rem 3rem;
	background: var(--surface-Backdrop);
	color: var(--color-Default);
	font-family: var(--base-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}


/* ── The panel ───────────────────────────────────────────────── */

.signInPanel
{
	width: 100%;
	max-width: var(--width-Panel);
	margin: 0 auto;
	padding: 1.5rem 1.5rem 1.25rem;
	background: var(--surface-Page);
	border-radius: 12px;
	box-shadow: var(--shadow-Massive);
}

.signInPanel > header
{
	margin-bottom: 1.25rem;
}

h1
{
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* "Office" is the heavy word: it says which of Takeout's parts this
   door leads to. */
h1 span
{
	font-weight: 400;
}

h2
{
	margin: 0 0 0.15rem;
	font-size: 1rem;
	font-weight: 600;
}

p
{
	margin: 0;
}

.lede,
.explainer
{
	color: var(--color-Secondary);
	font-size: 0.9rem;
}

a
{
	color: var(--color-link);
}


/* ── Its two parts ───────────────────────────────────────────── */

.signInSession,
.signInLink
{
	padding-top: 1rem;
	border-top: 0.5px solid var(--line-Row);
}

.signInSession
{
	padding-bottom: 1rem;
}

.signInSession form
{
	margin: 0.75rem 0 0.6rem;
}

.signInLink form
{
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

label
{
	font-size: 0.9rem;
}

.checkLabel
{
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0.25rem 0 0.35rem;
	color: var(--color-Secondary);
}

.checkLabel input
{
	margin: 0;
	accent-color: var(--color-Selected);
}


/* ── What is typed into and pressed ──────────────────────────── */

input[type="email"],
button
{
	width: 100%;
	padding: 0.5rem 0.7rem;
	font: inherit;
	color: var(--color-Default);
	background: var(--surface-Raised);
	border: 0.5px solid var(--color-Tool-Border-Default);
	border-radius: 7px;
}

input[type="email"]
{
	box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.12 );
}

button
{
	font-weight: 600;
	box-shadow: var(--shadow-Tool);
	cursor: pointer;
}

button.primary
{
	color: var(--color-OnSelected);
	background: var(--color-Selected);
}

button:active
{
	filter: brightness( 0.93 );
}

button:disabled
{
	opacity: 0.55;
	cursor: default;
}

:focus-visible
{
	outline: 2px solid var(--color-NavCursor);
	outline-offset: 2px;
}


/* ── What the page says back ─────────────────────────────────── */

.signInNotice
{
	margin: 0 0 1rem;
	padding: 0.55rem 0.7rem;
	font-size: 0.9rem;
	background: var(--surface-Sunken);
	border-radius: 7px;
}

.signInLink .signInNotice
{
	margin: 0.75rem 0 0;
}

.signInNotice[data-kind="refused"]
{
	color: var(--color-Refused);
}
