/* Login, registration, settings */

.account {
	gap: 20px;
}

.account__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 0 8px;
	text-align: center;
}

.account__sun {
	color: var(--accent);
}

.account__title {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
}

.account__text {
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--ink-soft);
}

.account__switch {
	font-size: 14px;
	font-weight: 300;
	text-align: center;
	color: var(--muted);
}

.account .primary-button {
	flex: none;
	margin-top: 6px;
}

/* "Continue with Google / Apple" */

.sign-in {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sign-in__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 20px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.sign-in__button svg {
	flex: none;
}

/* a line on both sides: ——— or with your email address ——— */
.sign-in__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

.sign-in__or::before,
.sign-in__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line-strong);
}

/* Email first, then the password */

.form__step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.chosen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 0 6px 0 16px;
	border-radius: 14px;
	background: var(--track);
	font-size: 15px;
}

.chosen__email {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chosen__change {
	flex: none;
	min-height: 40px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--link);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Subscription (apps only) */

.subscribe__benefits {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 18px 20px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.subscribe__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14.5px;
	line-height: 1.45;
}

.subscribe__benefits svg {
	flex: none;
	color: var(--accent);
}

.subscribe__offer {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.subscribe__price {
	font-size: 14px;
	font-weight: 300;
	text-align: center;
	color: var(--muted);
}

.subscribe__legal {
	display: flex;
	justify-content: center;
	gap: 20px;
	font-size: 12.5px;
}

.subscribe__legal a {
	color: var(--muted);
}

/* Settings in the apps: reminders and subscription */

.app-settings {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.reminder {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.reminder__switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
}

/* Delete account */

.delete-account {
	display: flex;
	flex-direction: column;
}

.delete-account__open {
	color: var(--error);
}

.delete-account__confirm {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1px solid var(--error);
	border-radius: 20px;
}

.delete-account__text {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--ink-soft);
}

.app-settings__manage {
	align-self: flex-start;
	padding: 0;
}

.account__legal {
	display: flex;
	justify-content: center;
	gap: 20px;
	font-size: 12.5px;
}

.account__legal a {
	color: var(--muted);
}

/* Profile photo in the settings */

.photo {
	display: flex;
	align-items: center;
	gap: 18px;
}

.photo__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

/* the file input stays (for keyboard and screen readers) but only the label shows */
.photo__choose {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14.5px;
	cursor: pointer;
}

.photo__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.photo__choose:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.photo__remove {
	align-self: flex-start;
	padding: 0;
	font-size: 13.5px;
}

/* After deleting the account: it goes in 24 hours */
.account__notice {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	line-height: 1.5;
}

/* The help form's message */
.field__input--area {
	min-height: 160px;
	padding: 12px 16px;
	line-height: 1.5;
	resize: vertical;
}

/* "Forgot your password?" below the login button, in both steps */
.account__forgot {
	align-self: center;
	font-size: 13.5px;
	color: var(--link);
}

/* Settings → Colour: a dot of each look */
.theme-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.theme-option__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.theme-option__dot--green {
	background: var(--swatch-green);
}

.theme-option__dot--rose {
	background: var(--swatch-rose);
}

.theme-option__dot--blue {
	background: var(--swatch-blue);
}

/* Cropping a new profile photo (lib/photo.js): a dialog over everything */
.crop {
	width: min(400px, 100% - 32px);
	max-height: calc(100% - 32px);
	padding: 22px 20px 16px;
	border: 0;
	border-radius: 24px;
	background: var(--ground);
	color: var(--ink);
}

.crop[open] {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.crop::backdrop {
	background: var(--scrim);
}

.crop__title {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 400;
	text-align: center;
}

.crop__hint {
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.5;
	text-align: center;
	color: var(--ink-soft);
}

/* the photo, and a circle over it: what's outside the circle is dimmed */
.crop__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 16px;
	background: var(--track);
	touch-action: none;
	cursor: grab;
}

.crop__stage:active {
	cursor: grabbing;
}

.crop__stage:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.crop__canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.crop__circle {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 999px var(--scrim-light);
	outline: 2px solid var(--on-accent);
	outline-offset: -2px;
	pointer-events: none;
}

.crop__zoom {
	display: flex;
	align-items: center;
	gap: 12px;
}

.crop__slider {
	flex: 1;
	accent-color: var(--accent);
}

.round-button--small {
	width: 40px;
	height: 40px;
}

.crop__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.crop__actions .primary-button {
	flex: 1;
	margin-top: 0;
}

/* Welcome: the three colours as small previews of the app */
.looks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.look {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px 14px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	font-size: 14.5px;
	color: var(--ink);
	cursor: pointer;
}

.look[aria-pressed="true"] {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
	font-weight: 500;
}

.look__preview {
	display: flex;
	width: 100%;
	padding: 8px;
	border-radius: 14px;
	background: var(--ground);
}

/* each preview in its own colours, whatever look is on now */
.look__card {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 64px;
	padding-bottom: 10px;
	border-radius: 10px;
}

.look__button {
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.look--green .look__card {
	background: var(--swatch-green-soft);
}

.look--green .look__button {
	background: var(--swatch-green);
}

.look--rose .look__card {
	background: var(--swatch-rose-soft);
}

.look--rose .look__button {
	background: var(--swatch-rose);
}

.look--blue .look__card {
	background: var(--swatch-blue-soft);
}

.look--blue .look__button {
	background: var(--swatch-blue);
}
