/* The Account page (formabible.com/account/). It sits in the theme's text page (.text-page) and
   uses the theme's colors and fonts, with fallbacks for any other theme. */
.fa { --fa-accent: var(--accent, #EDEDEF); --fa-text: var(--text, #EDEDEF); --fa-dim: var(--dim, #9A9AA0); --fa-line: var(--line, #2C2C2F); --fa-panel: var(--panel, #141416); max-width: 520px; margin-inline: auto; }
.text-page .fa h1 { font-size: 64px; }
.text-page .fa h2 { margin-top: 56px; padding-top: 0; border-top: 0; }
.text-page .fa .fa__lead { margin-top: 20px; margin-bottom: 0; font-size: 18px; color: #C9C9CE; line-height: 1.6; }
.text-page .fa h2 + .fa__form .fa__lead { margin-top: 0; font-size: 16px; color: var(--fa-dim); }

.fa__form { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.text-page .fa h2 + .fa__form { margin-top: 0; }
.fa__field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fa-text); }
.fa__field small { font-weight: 400; color: var(--fa-dim); font-size: 13px; }
.fa__field input {
	height: 54px;
	padding: 0 18px;
	border: 1px solid #3A3A3F;
	border-radius: 14px;
	outline: none;
	background-color: #17171A;
	font: 400 16px/1.5 var(--sans, system-ui, sans-serif);
	color: var(--fa-text);
	transition: border-color .2s;
}
.fa__field input:focus { border-color: var(--fa-accent); }
.fa__trap { display: none !important; }
/* "Email me about new videos": a checkbox in the theme's ink, with its words beside it */
.fa__check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #C9C9CE; cursor: pointer; }
.fa__check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fa-accent); color-scheme: dark; cursor: pointer; }

.fa__button {
	align-self: flex-start;
	height: 54px;
	margin-top: 6px;
	padding: 0 30px;
	border: 0;
	border-radius: 14px;
	background-color: var(--fa-accent);
	font: 600 16px/1 var(--sans, system-ui, sans-serif);
	color: var(--night, #0B0B0C);
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
/* Sign in, Create account and Send the link: the full width of the form, like the fields and the Apple / Google buttons */
.fa__button--wide { align-self: stretch; }
.fa__button:hover, .fa__button:focus-visible { background-color: var(--accent-hover, #FFFFFF); transform: translate3d(0, -2px, 0); }
.fa__button--quiet { height: 44px; margin-top: 20px; padding: 0 20px; border: 1px solid var(--fa-line); background-color: transparent; color: var(--fa-text); }
.fa__button--quiet:hover, .fa__button--quiet:focus-visible { background-color: #1D1D20; }
.fa__button--danger { background-color: var(--center, #E05D44); color: #fff; }
.fa__button--danger:hover, .fa__button--danger:focus-visible { background-color: var(--center-dark, #B8432E); }

.text-page .fa .fa__switch { margin: 24px 0 0; font-size: 16px; }
.text-page .fa .fa__switch + .fa__switch { margin-top: 8px; }
.text-page .fa .fa__fine { margin: 24px 0 0; font-size: 13px; color: #6B6B70; }
.text-page .fa .fa__switch a, .text-page .fa .fa__fine a { color: var(--fa-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--fa-accent) 40%, transparent); }

.text-page .fa .fa__message { margin: 0 0 32px; padding: 16px 20px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.text-page .fa .fa__message--error { background-color: rgba(224, 93, 68, .14); color: #F2A493; }
.text-page .fa .fa__message--notice { background-color: rgba(237, 237, 239, .08); color: #EDEDEF; }

.fa__card { margin-top: 32px; padding: 28px; border: 1px solid var(--fa-line); border-radius: 16px; background-color: var(--fa-panel); }
.text-page .fa .fa__name { margin: 0 0 6px; font-family: var(--serif, Georgia, serif); font-size: 30px; color: var(--fa-text); line-height: 1.2; }
.text-page .fa .fa__detail { margin: 0; font-size: 15px; color: var(--fa-dim); line-height: 1.6; }

/* "Not confirmed yet", and the box to send the confirmation link again */
.text-page .fa .fa__unconfirmed { color: var(--fa-accent); }
.fa__confirm { margin-top: 20px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--fa-accent) 35%, transparent); border-radius: 16px; background-color: rgba(237, 237, 239, .04); }
.text-page .fa .fa__confirm p { margin: 0; font-size: 15px; color: #C9C9CE; line-height: 1.6; }
.fa__confirm .fa__button--quiet { margin-top: 16px; }

/* Signed in to the app: one row per device, with its Sign out */
.fa__devices { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fa-line); }
.fa__device { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--fa-line); }
.text-page .fa .fa__device-name { margin: 0 0 2px; font-size: 17px; font-weight: 600; color: var(--fa-text); }
.fa__device .fa__button--small { height: 38px; margin-top: 0; padding: 0 16px; font-size: 14px; }
.text-page .fa .fa__lead--quiet { font-size: 16px; color: var(--fa-dim); }
.text-page .fa h2 + .fa__lead--quiet { margin-top: 0; }

@media (max-width: 767px) {
	.text-page .fa h1 { font-size: 46px; }
	.fa__button { align-self: stretch; }
	.fa__device .fa__button--small { width: auto; }
	.fa__card { padding: 22px; }
}

/* Continue with Apple / Google, above the email form: the same size and corners as the fields */
.fa__social { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.text-page .fa .fa__provider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 54px;
	border-radius: 14px;
	background-color: #fff;
	font: 600 16px/1 var(--sans, system-ui, sans-serif);
	color: #0B0B0C;
	text-decoration: none;
	transition: background-color .2s, transform .2s;
}
.text-page .fa .fa__provider:hover, .text-page .fa .fa__provider:focus-visible { background-color: #E8E8EA; transform: translate3d(0, -2px, 0); }
.text-page .fa .fa__provider svg { flex: none; }
.text-page .fa .fa__provider svg[viewBox="0 0 17 20"] { margin-top: -3px; }
.text-page .fa .fa__or { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font-size: 13px; color: #6B6B70; text-transform: uppercase; letter-spacing: .12em; }
.fa__or::before, .fa__or::after { content: ""; flex: 1; height: 1px; background-color: var(--fa-line); }
.fa__social + .fa__or + .fa__form { margin-top: 24px; }

/* Saved videos: each one's picture, title and passage, with Remove */
.fa__saved { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fa-line); }
.fa__saved-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--fa-line); }
.text-page .fa .fa__saved-link { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; }
.fa__saved-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background-color: #1D1D20; }
.fa__saved-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fa__saved-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fa__saved-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--fa-text); transition: color .2s; }
.fa__saved-link:hover .fa__saved-title, .fa__saved-link:focus-visible .fa__saved-title { color: var(--fa-accent); }
.fa__saved-item .fa__button--small { height: 38px; margin-top: 0; padding: 0 16px; font-size: 14px; }
.text-page .fa .fa__lead--quiet a { color: var(--fa-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--fa-accent) 40%, transparent); }
@media (max-width: 767px) {
	.fa__saved-thumb { width: 88px; }
	.fa__saved-title { font-size: 15px; }
	.fa__saved-item .fa__button--small { width: auto; }
}

/* Tabs: Profile, Videos, Settings */
.fa__tabs { display: flex; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--fa-line); border-radius: 999px; background-color: var(--fa-panel); }
.text-page .fa .fa__tab { flex: 1; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 999px; font: 600 15px/1 var(--sans, system-ui, sans-serif); color: var(--fa-dim); text-decoration: none; transition: background-color .2s, color .2s; }
.text-page .fa .fa__tab:hover, .text-page .fa .fa__tab:focus-visible { color: var(--fa-text); }
.text-page .fa .fa__tab.is-current { background-color: var(--fa-accent); color: var(--night, #0B0B0C); }
.fa__tabs + .fa__card, .fa__tabs + h2 { margin-top: 32px; }
.text-page .fa .fa__tabs + h2 { margin-top: 40px; }

/* The picture: a photo, or the name's first letter in ink, semibold (600) and half the circle's size, as in the app */
.fa__who { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.text-page .fa .fa__who .fa__name { margin: 0; }
.fa__picture { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background-color: #26262A; font: 600 28px/1 var(--serif, Georgia, serif); color: var(--fa-accent); }
/* EB Garamond's capitals sit .03em below the middle of the line (cap height 650 of 1000, ascender 1007,
   descender 298): raised by that, the letter is centered in the circle. The app does the same. */
.fa__letter { transform: translateY(-.03em); }
.fa__picture img { width: 100%; height: 100%; object-fit: cover; }
.fa__confirm + .fa__form { margin-top: 24px; }
.text-page .fa .fa__confirm strong { color: var(--fa-text); }


/* A section a form comes back to (#name, #picture, #email…) lands below the site's sticky header (72px). */
.fa h2[id] { scroll-margin-top: 104px; }

/* Signed out (templates/signed-out.php): no menu or footer. The FORMA mark, the heading and the
   links under the form are centered in one column, and an X in the top right corner closes it. */
.forma-signin { min-height: 100vh; background-color: var(--night, #0B0B0C); }
/* The column sits a little above the middle of the screen: the spare height is split 2 : 3 above
   and below, since true center looks low. Taller than the screen (Create account on a phone),
   the spacers shrink to nothing and the page starts 72px down, ends 72px above the bottom, and scrolls. */
.text-page.fa-signin { display: flex; flex-direction: column; box-sizing: border-box; min-height: 100vh; min-height: 100dvh; padding: 72px 24px; }
.fa-signin::before, .fa-signin::after { content: ""; flex: 2 1 0; }
.fa-signin::after { flex-grow: 3; }
.fa-signin > .text-page__wrap { flex: none; width: 100%; }
.fa-signin .fa { max-width: 440px; }
/* The app's icon (assets/img/app-icon.png), with iOS's corners (22.37% of its width) and a
   hairline so its black shows against the page's near-black. */
.fa-signin__home { display: block; width: fit-content; margin: 0 auto 28px; border-radius: 22.37%; transition: transform .2s; }
.fa-signin__home:hover, .fa-signin__home:focus-visible { transform: translate3d(0, -2px, 0); }
.fa-signin__home img { display: block; width: 64px; height: 64px; border: 1px solid var(--line, #2C2C2F); border-radius: 22.37%; }
.fa-signin .fa h1 { font-size: 48px; text-align: center; }
.text-page.fa-signin .fa .fa__lead { margin-top: 16px; font-size: 17px; text-align: center; }
.text-page.fa-signin .fa .fa__switch, .text-page.fa-signin .fa .fa__fine { text-align: center; }
.fa-close {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #1D1D20;
	color: var(--dim, #9A9AA0);
	transition: background-color .2s, color .2s;
}
.fa-close:hover, .fa-close:focus-visible { background-color: #26262A; color: var(--text, #EDEDEF); }
@media (max-width: 767px) {
	.text-page.fa-signin { padding: 64px 16px; }
	.fa-signin .fa h1 { font-size: 40px; }
	.fa-signin__home img { width: 56px; height: 56px; }
	.fa-close { top: 14px; right: 14px; }
}

/* Profile: Account information, one row each for the name, picture, email and password. Edit at
   the right opens the row's panel under it and reads Cancel while it's open. */
.fa__rows { margin-top: 20px; border-top: 1px solid var(--fa-line); }
.text-page .fa h2#info + .fa__rows { margin-top: 20px; }
.fa__row { border-bottom: 1px solid var(--fa-line); scroll-margin-top: 104px; }
.fa__row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.fa__row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fa__row-label { font-size: 15px; font-weight: 600; color: var(--fa-text); }
.fa__row-value { font-size: 16px; line-height: 1.5; color: var(--fa-dim); overflow-wrap: anywhere; }
/* Edit / Cancel: only the word is a button, with room around it for a finger */
.fa__edit { flex: none; margin: -12px -8px -12px 0; padding: 12px 8px 12px 16px; border: 0; border-radius: 8px; background: none; font: 500 15px/1 var(--sans, system-ui, sans-serif); color: var(--fa-text); cursor: pointer; transition: color .2s; }
.fa__edit:hover { color: var(--fa-accent); }
.fa__edit:focus-visible { outline: 2px solid var(--fa-accent); outline-offset: -2px; }
.fa__row-empty { color: #6B6B70; }
.fa__dots { font-size: 20px; line-height: 24px; letter-spacing: .08em; color: var(--fa-text); }
.fa__panel { margin: 0 0 20px; padding: 24px; border: 1px solid var(--fa-line); border-radius: 18px; background-color: var(--fa-panel); }
.text-page .fa .fa__panel-title { margin: 0 0 20px; font-size: 17px; font-weight: 600; color: var(--fa-text); }
.text-page .fa .fa__panel .fa__form { margin-top: 0; }
.text-page .fa .fa__panel .fa__lead { margin-top: 0; font-size: 15px; color: var(--fa-dim); }
.text-page .fa .fa__panel .fa__message { margin-bottom: 20px; }
.text-page .fa .fa__row > .fa__message { margin: 0 0 20px; }
.fa__row > .fa__confirm { margin: 0 0 20px; }
@media (max-width: 767px) {
	.fa__panel { padding: 20px 18px; }
}

/* The card's picture changes the picture: a pencil badge on its corner says so. With none yet it
   opens the photo picker; with one, a small menu (Choose a new picture, Remove picture). */
.fa__card { scroll-margin-top: 104px; }
.fa__picture-edit { position: relative; flex: none; }
.fa__who:has(.fa__picture-edit) { gap: 22px; margin-bottom: 18px; }
.fa__picture-upload { margin: 0; }
.fa__picture-button { position: relative; display: flex; list-style: none; border-radius: 50%; cursor: pointer; }
.fa__picture-button::-webkit-details-marker { display: none; }
.fa__picture-button::marker { content: ""; }
.fa__picture--card { width: 120px; height: 120px; font-size: 60px; transition: filter .2s; }
.fa__picture-button:hover .fa__picture--card { filter: brightness(1.12); }
.fa__picture-button:focus-visible, .fa__picture-button:has(.fa__picture-input:focus-visible) { outline: 2px solid var(--fa-accent); outline-offset: 3px; }
.fa__picture-button:focus:not(:focus-visible) { outline: none; }
.fa__picture-badge { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 3px solid var(--fa-panel); border-radius: 50%; background-color: var(--fa-accent); color: var(--night, #0B0B0C); }
/* The file field covers the picture, invisible, so a tap on it opens the picker. */
.fa__picture-button .fa__picture-input, .fa__menu-item .fa__picture-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; z-index: 1; }
.fa__picture-button .fa__picture-input { border-radius: 50%; }
.fa__menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border: 1px solid #3A3A3F; border-radius: 14px; background-color: #1D1D20; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.fa__menu form { margin: 0; }
.fa__menu-item { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font: 500 15px/1.3 var(--sans, system-ui, sans-serif); color: var(--fa-text); text-align: left; cursor: pointer; }
.fa__menu-item:hover, .fa__menu-item:focus-visible, .fa__menu-item:has(:focus-visible) { background-color: #26262A; outline: none; }
.fa__menu-item--danger { color: #F2A493; }
.text-page .fa .fa__card > .fa__message { margin: 0 0 20px; }
@media (max-width: 767px) {
	.fa__picture--card { width: 104px; height: 104px; font-size: 52px; }
	.fa__picture-badge { width: 34px; height: 34px; }
	.fa__who:has(.fa__picture-edit) { gap: 18px; }
}

/* The theme indents every list on a text page (.text-page ul, li): the device and saved-video
   lists sit flush with the rest of the page instead. */
.text-page .fa .fa__devices, .text-page .fa .fa__saved { padding-left: 0; list-style: none; }
.text-page .fa .fa__device, .text-page .fa .fa__saved-item { margin-bottom: 0; }

/* A device's "Signed in …" and "Last used …": one line, or two on a phone */
@media (max-width: 767px) {
	.fa__device-when { display: block; }
	.fa__device-dot { display: none; }
}

/* Get help, at the foot of every tab: the help page and the email address */
.text-page .fa .fa__help { margin-top: 56px; }
.text-page .fa .fa__help-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--fa-text); text-transform: uppercase; letter-spacing: .08em; }
.fa__help-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
/* Help page in ink, Email us quiet beside it, both the quiet button's size */
.text-page .fa .fa__help-links .fa__button { display: inline-flex; align-items: center; height: 44px; margin-top: 0; padding: 0 20px; text-decoration: none; }
.text-page .fa .fa__help-links .fa__button:not(.fa__button--quiet) { border: 1px solid transparent; color: var(--night, #0B0B0C); }
@media (max-width: 767px) {
	.text-page .fa .fa__help-links .fa__button { flex: 1 1 100%; justify-content: center; }
}
