/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · genre: modern-minimal · theme: studied-DNA (owner auth references) · macrostructure: Split Studio · H2 ratio=6/6, media=video-or-image, divider=negative-space · variance: 5 · motion: 3 · density: 3 · contrast: pass (40-41) · nav: logo return anchor · footer: Ft2 spaced · slop: pass (42-49) · mobile: pass (34, 49, 50-57) · icons: Phosphor */

html {
	min-width: 20rem;
	overflow-x: clip;
	background: var(--yc365p-auth-paper);
	font-size: 16px;
}

body.yc365auth-page {
	min-width: 20rem;
	min-height: 100dvh;
	margin: 0;
	overflow-x: clip;
	background: var(--yc365p-auth-paper);
	color: var(--yc365p-auth-ink);
	font-family: var(--yc365p-font-body);
	font-size: 1rem;
	line-height: 1.55;
}

.yc365auth-page *,
.yc365auth-page *::before,
.yc365auth-page *::after {
	box-sizing: border-box;
}

.yc365auth-page a {
	color: var(--yc365p-auth-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.yc365auth-page a:hover {
	color: var(--yc365p-auth-ink);
}

.yc365auth-page a:focus-visible,
.yc365auth-page button:focus-visible,
.yc365auth-page input:focus-visible {
	outline: 0.1875rem solid var(--yc365p-focus);
	outline-offset: 0.1875rem;
}

.yc365auth-shell {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: 100dvh;
	isolation: isolate;
}

.yc365auth-media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background-color: var(--yc365p-auth-media-scrim);
}

.yc365auth-media__image,
.yc365auth-media__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yc365auth-media__overlay {
	position: absolute;
	inset: 0;
	background: var(--yc365p-auth-media-scrim);
	opacity: var(--yc365auth-overlay, 72%);
}

.yc365auth-media--light .yc365auth-media__overlay {
	background: var(--yc365p-auth-light-wash);
}

.yc365auth-main {
	display: grid;
	place-items: start center;
	width: 100%;
	padding: clamp(2.5rem, 8vh, 5.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.yc365auth-card {
	display: grid;
	gap: var(--yc365p-space-6);
	width: min(100%, 33rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 0.0625rem solid var(--yc365p-auth-rule);
	border-radius: var(--yc365p-radius-lg);
	background: var(--yc365p-auth-paper);
	box-shadow: var(--yc365p-auth-panel-shadow);
}

.yc365auth-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--yc365p-space-3);
	min-height: 2.75rem;
	padding: var(--yc365p-space-2) var(--yc365p-space-3);
	border-radius: var(--yc365p-radius-sm);
	background: var(--yc365p-auth-ink);
	color: var(--yc365p-auth-action-ink);
	font-family: var(--yc365p-font-display);
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.yc365auth-brand img {
	display: block;
	width: min(var(--yc365auth-logo-width, 11.875rem), 11.875rem);
	height: min(var(--yc365auth-logo-height, 3.25rem), 3.25rem);
	object-fit: contain;
}

.yc365auth-brand--centered {
	justify-self: center;
}

.yc365auth-heading {
	display: grid;
	gap: var(--yc365p-space-2);
	text-align: center;
}

.yc365auth-heading--left {
	text-align: left;
}

.yc365auth-heading h1,
.yc365auth-heading h2,
.yc365auth-story h1 {
	min-width: 0;
	margin: 0;
	color: inherit;
	font-family: var(--yc365p-font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.yc365auth-heading h1,
.yc365auth-heading h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.yc365auth-heading p {
	max-width: 42ch;
	margin: 0 auto;
	color: var(--yc365p-auth-muted);
}

.yc365auth-heading--left p {
	margin-inline: 0;
}

.yc365auth-form {
	display: grid;
	gap: var(--yc365p-space-5);
}

.yc365auth-field {
	display: grid;
	gap: var(--yc365p-space-2);
	min-width: 0;
	font-weight: 600;
}

.yc365auth-field__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--yc365p-space-4);
}

.yc365auth-field__label a {
	font-weight: 500;
	white-space: nowrap;
}

.yc365auth-field input {
	width: 100%;
	min-width: 0;
	height: 3.125rem;
	padding: 0 var(--yc365p-space-4);
	border: 0.0625rem solid var(--yc365p-border-strong);
	border-radius: var(--yc365p-radius-sm);
	background: var(--yc365p-auth-field);
	color: var(--yc365p-auth-ink);
	font: inherit;
	font-weight: 400;
	transition: border-color var(--yc365p-motion-fast) var(--yc365p-ease), box-shadow var(--yc365p-motion-fast) var(--yc365p-ease);
}

.yc365auth-field input:hover {
	border-color: var(--yc365p-auth-muted);
}

.yc365auth-field input:focus {
	border-color: var(--yc365p-auth-field-focus);
	box-shadow: 0 0 0 0.25rem var(--yc365p-focus-halo);
}

.yc365auth-field[data-state="unavailable"] input {
	border-color: var(--yc365p-auth-danger);
}

.yc365auth-field[data-state="available"] input {
	border-color: var(--yc365p-auth-success);
}

.yc365auth-field__status {
	min-height: 1.35em;
	color: var(--yc365p-auth-muted);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
}

.yc365auth-field[data-state="checking"] .yc365auth-field__status {
	color: var(--yc365p-auth-link);
}

.yc365auth-field[data-state="unavailable"] .yc365auth-field__status {
	color: var(--yc365p-auth-danger);
}

.yc365auth-field[data-state="available"] .yc365auth-field__status {
	color: var(--yc365p-auth-success);
}

.yc365auth-password {
	position: relative;
	display: block;
}

.yc365auth-password input {
	padding-right: 3.25rem;
}

.yc365auth-password__toggle {
	position: absolute;
	top: 50%;
	right: 0.25rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--yc365p-radius-sm);
	background: transparent;
	color: var(--yc365p-auth-muted);
	cursor: pointer;
}

.yc365auth-check {
	display: flex;
	align-items: center;
	gap: var(--yc365p-space-2);
	font-size: 0.9375rem;
	cursor: pointer;
}

.yc365auth-check input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--yc365p-auth-action);
}

.yc365auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--yc365p-space-2);
	width: 100%;
	min-height: 3.125rem;
	padding: 0.75rem 1.25rem;
	border: 0.0625rem solid var(--yc365p-auth-action);
	border-radius: var(--yc365p-radius-sm);
	background: var(--yc365p-auth-action);
	color: var(--yc365p-auth-action-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--yc365p-motion-fast) var(--yc365p-ease), border-color var(--yc365p-motion-fast) var(--yc365p-ease), transform var(--yc365p-motion-fast) var(--yc365p-ease);
	white-space: nowrap;
}

.yc365auth-submit:hover {
	border-color: var(--yc365p-auth-action-hover);
	background: var(--yc365p-auth-action-hover);
}

.yc365auth-submit:active {
	transform: translateY(0.0625rem);
}

.yc365auth-submit:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.yc365auth-passkey {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--yc365p-space-2);
	width: 100%;
	min-height: 3rem;
	padding: 0.6875rem 1.25rem;
	border: 0.0625rem solid var(--yc365p-auth-rule);
	border-radius: var(--yc365p-radius-sm);
	background: var(--yc365p-auth-paper);
	color: var(--yc365p-auth-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--yc365p-motion-fast) var(--yc365p-ease), background-color var(--yc365p-motion-fast) var(--yc365p-ease);
}

.yc365auth-passkey:hover {
	border-color: var(--yc365p-auth-action);
	background: var(--yc365p-auth-paper-soft);
}

.yc365auth-passkey:disabled {
	cursor: wait;
	opacity: 0.62;
}

.yc365auth-passkey-status {
	margin: calc(var(--yc365p-space-2) * -1) 0 0;
	color: var(--yc365p-auth-muted);
	font-size: 0.875rem;
	text-align: center;
}

.yc365auth-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--yc365p-space-2);
	margin: 0;
	padding: var(--yc365p-space-3) var(--yc365p-space-4);
	border: 0.0625rem solid currentColor;
	border-radius: var(--yc365p-radius-sm);
	font-size: 0.9375rem;
}

.yc365auth-notice--error {
	color: var(--yc365p-auth-danger);
}

.yc365auth-notice--success {
	background: color-mix(in oklch, var(--yc365p-auth-success) 10%, var(--yc365p-auth-paper));
	color: var(--yc365p-auth-success);
}

.yc365auth-card--success,
.yc365auth-signup-panel__inner--success {
	align-content: center;
}

.yc365auth-success {
	align-items: center;
	justify-content: center;
	min-height: 4rem;
	font-family: var(--yc365p-font-display);
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
}

.yc365auth-switch,
.yc365auth-consent {
	margin: 0;
	color: var(--yc365p-auth-muted);
	font-size: 0.9375rem;
}

.yc365auth-switch {
	text-align: center;
}

.yc365auth-switch a {
	display: inline-flex;
	align-items: center;
	gap: var(--yc365p-space-2);
	white-space: nowrap;
}

.yc365auth-consent {
	line-height: 1.55;
}

.yc365auth-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--yc365p-space-6);
	padding: var(--yc365p-space-4) clamp(1rem, 5vw, 4rem);
	border-top: 0.0625rem solid var(--yc365p-auth-rule);
	background: var(--yc365p-auth-paper-soft);
	color: var(--yc365p-auth-muted);
	font-size: 0.875rem;
}

.yc365auth-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--yc365p-space-5);
}

.yc365auth-footer a {
	white-space: nowrap;
}

.yc365auth-footer p {
	margin: 0;
	white-space: nowrap;
}

.yc365auth-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100dvh;
}

.yc365auth-story {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 100dvh;
	overflow: hidden;
	isolation: isolate;
	color: var(--yc365p-auth-action-ink);
}

.yc365auth-story .yc365auth-media {
	z-index: -1;
}

.yc365auth-story__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--yc365p-space-5);
	width: min(100%, 38rem);
	padding: clamp(2rem, 6vw, 6rem);
}

.yc365auth-story h1 {
	max-width: 14ch;
	font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.yc365auth-story p {
	max-width: 34ch;
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.yc365auth-story a {
	display: inline-flex;
	align-items: center;
	gap: var(--yc365p-space-2);
	min-height: 2.75rem;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.yc365auth-signup-panel {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: clamp(2rem, 6vw, 5rem);
	background: var(--yc365p-auth-paper);
}

.yc365auth-signup-panel__inner {
	display: grid;
	gap: var(--yc365p-space-6);
	width: min(100%, 35.5rem);
}

.yc365auth-brand--signup {
	justify-self: start;
}

@media (max-width: 60rem) {
	.yc365auth-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.yc365auth-story {
		min-height: clamp(14rem, 38vh, 22rem);
	}

	.yc365auth-story__content {
		justify-content: flex-end;
		width: 100%;
		padding: clamp(1.5rem, 5vw, 3rem);
	}

	.yc365auth-story h1 {
		max-width: 18ch;
		font-size: clamp(2.25rem, 7vw, 3.75rem);
	}

	.yc365auth-signup-panel {
		place-items: start center;
		padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
	}
}

@media (max-width: 40rem) {
	.yc365auth-main {
		place-items: start center;
		padding: 1rem;
	}

	.yc365auth-card {
		gap: var(--yc365p-space-5);
		padding: 1.25rem;
	}

	.yc365auth-field__label {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--yc365p-space-1);
	}

	.yc365auth-story {
		min-height: 15rem;
	}

	.yc365auth-story__content {
		gap: var(--yc365p-space-3);
		padding: 1.5rem 1rem;
	}

	.yc365auth-story h1 {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.yc365auth-signup-panel {
		padding: 2rem 1rem 2.5rem;
	}

	.yc365auth-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--yc365p-space-3);
		padding: var(--yc365p-space-4);
	}

	.yc365auth-footer nav {
		gap: var(--yc365p-space-3) var(--yc365p-space-5);
	}
}

@media (prefers-reduced-motion: reduce) {
	.yc365auth-page *,
	.yc365auth-page *::before,
	.yc365auth-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
