/* NarratiaVerse account forms: signup, login, date of birth, settings. */
.nv-account-form {
	max-width: 440px;
	margin-inline: auto;
	font-size: 16px;
}

.nv-settings {
	max-width: none;
	margin-inline: 0;
}

.nv-form {
	display: grid;
	gap: 16px;
	margin-block: 16px 8px;
}

.nv-form__row {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.nv-form__row > label,
.nv-form__row > legend,
.nv-avatar__fields > label {
	font-weight: 600;
	font-size: 15px;
	padding: 0;
}

.nv-form input:is([type="text"], [type="email"], [type="password"]),
.nv-form select,
.nv-form textarea {
	width: 100%;
	min-height: 44px;
	font-size: 16px; /* stops phones zooming in on focus */
	padding: 8px 12px;
	border-radius: var(--layout-border-radius-small, 4px);
	box-sizing: border-box;
}

.nv-form textarea {
	min-height: 96px;
	resize: vertical;
}

.nv-form input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	font-size: 15px;
	min-height: 44px;
	max-width: 100%;
}

.nv-form__dob-fields {
	display: grid;
	grid-template-columns: 1fr 1.6fr 1.2fr;
	gap: 8px;
}

.nv-form__hint {
	font-size: 14px;
	color: var(--fg-600);
	margin: 0;
}

.nv-form__check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

.nv-form__check input {
	width: 22px;
	height: 22px;
	flex: none;
	margin: 0;
}

.nv-form__check label {
	font-weight: 400;
	cursor: pointer;
}

.nv-form__submit.button {
	min-height: 48px;
	width: 100%;
	font-size: 16px;
	justify-content: center;
}

.nv-form__notice {
	padding: 12px 14px;
	margin-block: 12px;
	border-radius: var(--layout-border-radius-small, 4px);
	border-left: 4px solid var(--primary-500);
	background: color-mix(in srgb, var(--primary-500) 10%, transparent);
	color: inherit;
	font-size: 15px;
}

.nv-form__notice._error {
	border-left-color: var(--red-500, #d43b3b);
}

.nv-form__switch {
	text-align: center;
	margin-block: 12px 0;
}

.nv-form__switch a,
.nv-form__hint a {
	display: inline-block;
	padding-block: 10px;
	margin-block: -10px;
}

.nv-form__or {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--fg-600);
	font-size: 14px;
	margin-block: 16px;
}

.nv-form__or::before,
.nv-form__or::after {
	content: "";
	flex: 1;
	border-top: 1px solid currentColor;
	opacity: 0.4;
}

.nv-form__oauth :is(a, button) {
	min-height: 48px;
	width: 100%;
	justify-content: center;
	font-size: 16px;
}

.nv-avatar {
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 16px;
}

.nv-avatar__img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.nv-avatar__fields {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.nv-settings__sub {
	margin-block: 28px 4px;
}
