/*
 * 로그인/회원가입 화면 공통 스타일입니다.
 *
 * 화면 구성: 좌측 흰색 패널(폼) + 우측 핑크 그라데이션 패널(브랜딩)
 * 브랜드 컬러는 해태 로고의 마젠타 핑크(#ED1E79 계열)를 기준으로 합니다.
 */

:root {
	--brand-pink: #ed1e79;
	--brand-pink-dark: #c4136b;
	--brand-pink-deep: #a50f5c;
	--input-bg: #fdf3f7;
	--input-border: #f3d9e5;
	--text-dark: #1f1f1f;
	--text-gray: #8a8a8a;
	--text-light-gray: #b5b5b5;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
	color: var(--text-dark);
}

/* ==================== 전체 레이아웃 (좌/우 분할) ==================== */

.auth-layout {
	display: flex;
	min-height: 100vh;
}

/* 좌측: 폼 영역 (시안처럼 화면의 절반을 차지) */
.auth-form-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	background: #ffffff;
}

/* 폼 내용은 좌측 패널 가운데에 적정 폭으로 배치합니다. */
.form-inner {
	width: 100%;
	max-width: 420px;
}

/* 우측: 브랜딩 영역 */
.auth-brand-panel {
	flex: 1;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px 72px;
	background: linear-gradient(135deg, #e4176e 0%, #c4136b 55%, #a50f5c 100%);
	color: #ffffff;
}

/* 우측 배경의 장식용 원 */
.auth-brand-panel::before,
.auth-brand-panel::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.auth-brand-panel::before {
	width: 420px;
	height: 420px;
	top: -140px;
	right: -120px;
}

.auth-brand-panel::after {
	width: 360px;
	height: 360px;
	bottom: -160px;
	left: -100px;
}

/* ==================== 좌측 폼 패널 ==================== */

/* 상단 로고 + 서비스명 */
.auth-logo-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 56px;
}

.auth-logo-row img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.auth-logo-row .divider {
	width: 1px;
	height: 36px;
	background: #e5e5e5;
}

.auth-logo-row .service-name {
	font-size: 20px;
	font-weight: 800;
}

.auth-logo-row .service-name .highlight {
	color: var(--brand-pink);
}

.auth-logo-row .service-desc {
	font-size: 11px;
	color: var(--text-gray);
	letter-spacing: 2px;
	margin-top: 2px;
}

.auth-title {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 10px;
}

.auth-subtitle {
	font-size: 14px;
	color: var(--text-gray);
	margin-bottom: 36px;
}

/* 입력 필드 */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.form-group input {
	width: 100%;
	padding: 14px 16px;
	font-size: 14px;
	border: 1px solid var(--input-border);
	border-radius: 10px;
	background: var(--input-bg);
	outline: none;
	transition: border-color 0.15s;
}

.form-group input:focus {
	border-color: var(--brand-pink);
	background: #ffffff;
}

.form-group .field-hint {
	font-size: 12px;
	color: var(--text-light-gray);
	margin-top: 6px;
}

/* 에러/성공 메시지 */
.form-message {
	font-size: 13px;
	margin: 4px 0 16px;
	min-height: 18px;
}

.form-message.error {
	color: #d32f2f;
}

.form-message.success {
	color: #2e7d32;
}

/* 메인 버튼 */
.btn-primary {
	width: 100%;
	padding: 15px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	background: var(--brand-pink);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s;
}

.btn-primary:hover {
	background: var(--brand-pink-dark);
}

.btn-primary:disabled {
	background: #f0a8c9;
	cursor: not-allowed;
}

/* 보조 버튼 (회원가입 이전 단계 이동용) */
.btn-secondary {
	width: 100%;
	padding: 13px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-gray);
	background: #f5f5f5;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	margin-top: 10px;
}

.btn-secondary:hover {
	background: #ececec;
}

/* 하단 링크 영역 */
.auth-footer-link {
	text-align: center;
	font-size: 13px;
	color: var(--text-gray);
	margin-top: 32px;
}

.auth-footer-link a {
	color: var(--brand-pink);
	font-weight: 700;
	text-decoration: none;
	margin-left: 6px;
}

.auth-footer-link a:hover {
	text-decoration: underline;
}

.auth-copyright {
	text-align: center;
	font-size: 11px;
	color: var(--text-light-gray);
	margin-top: 48px;
}

/* ==================== 우측 브랜딩 패널 ==================== */

.brand-content {
	position: relative;
	z-index: 1;
	max-width: 480px;
}

.brand-logo-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #ffffff;
	border-radius: 14px;
	margin-bottom: 28px;
}

.brand-logo-box img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.brand-title {
	font-size: 34px;
	font-weight: 800;
	margin-bottom: 16px;
}

.brand-desc {
	font-size: 14px;
	line-height: 1.7;
	opacity: 0.92;
	margin-bottom: 40px;
}

/* 마스킹 예시 카드 */
.masking-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	color: var(--text-dark);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.masking-card .card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.masking-card .card-header .card-label {
	font-size: 11px;
	color: var(--text-light-gray);
}

.masking-card .card-header .dots {
	display: flex;
	gap: 5px;
}

.masking-card .card-header .dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e5e5e5;
}

.masking-card .original-line {
	font-size: 14px;
	margin-bottom: 4px;
}

.masking-card .original-line strong {
	margin-right: 6px;
}

.masking-card .original-line .pink {
	color: var(--brand-pink);
	font-weight: 700;
}

.masking-card .arrow-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--text-light-gray);
	margin: 16px 0 12px;
}

.masking-card .arrow-row::before,
.masking-card .arrow-row::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #f0f0f0;
}

.masking-card .token-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.masking-card .token {
	font-family: "Consolas", monospace;
	font-size: 12px;
	font-weight: 700;
	color: var(--brand-pink);
	background: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: 8px;
	padding: 8px 14px;
}

.masking-card .check-line {
	font-size: 13px;
	font-weight: 600;
	color: #2e7d32;
}

/* ==================== 회원가입 단계 표시 ==================== */

.step-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
}

.step-indicator .step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	background: #f0f0f0;
	color: var(--text-light-gray);
}

.step-indicator .step.active {
	background: var(--brand-pink);
	color: #ffffff;
}

.step-indicator .step.done {
	background: var(--input-bg);
	color: var(--brand-pink);
	border: 1px solid var(--input-border);
}

.step-indicator .step-line {
	flex: 1;
	height: 2px;
	background: #f0f0f0;
}

/* 단계별 패널은 JS가 전환 방향 클래스를 적용한 뒤 active 단계를 교체합니다. */
.signup-step {
	display: none;
}

.signup-step.active {
	display: block;
}

/* 반응형: 화면이 좁으면 우측 브랜딩 패널을 숨깁니다. */
@media (max-width: 900px) {
	.auth-brand-panel {
		display: none;
	}

	.auth-form-panel {
		padding: 40px 24px;
	}
}

/* ==================== 로그인 화면 ==================== */

body.login-page {
	min-height: 100vh;
	overflow: hidden;
	background: #fffafd;
	color: #1c1418;
}

.login-shell {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	overflow: hidden;
	background: #fffafd;
}

.login-form-panel {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: min(400px, calc(100% - 48px));
	height: min(620px, calc(100dvh - 48px));
	max-height: calc(100dvh - 48px);
	display: flex;
	justify-content: center;
	padding: 30px 32px 32px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 22px 60px rgba(83, 55, 69, 0.2);
	transform: translate(-50%, -50%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	animation: login-card-enter 650ms cubic-bezier(0.22, 1, 0.36, 1) 1250ms both;
	overflow-y: auto;
}

@keyframes login-card-enter {
	from {
		opacity: 0;
		transform: translate(-50%, calc(-50% + 28px)) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.login-form-inner {
	width: 100%;
	max-width: 336px;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.login-logo-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	text-align: center;
}

.login-logo {
	width: 100px;
	height: 58px;
	object-fit: cover;
	object-position: center;
	mix-blend-mode: multiply;
}

.login-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	color: #e5147e;
}

.login-eyebrow {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	color: #c87a9e;
}

.login-subtitle {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #8a7a82;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.login-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.login-field label {
	font-size: 12.5px;
	font-weight: 600;
	color: #4a3d43;
}

.login-input-wrap {
	position: relative;
	display: flex;
}

.login-input-icon {
	position: absolute;
	left: 14px;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	color: #c9aebc;
	pointer-events: none;
}

.login-input-icon svg,
.login-password-toggle svg,
.login-feature-item svg {
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.login-input-wrap input {
	flex: 1;
	width: 100%;
	height: 44px;
	padding: 0 14px 0 41px;
	border: 1.5px solid #ebdde4;
	border-radius: 11px;
	outline: none;
	background: #fdfbfc;
	color: #1c1418;
	font: inherit;
	font-size: 14px;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.login-input-wrap input[type="password"],
.login-input-wrap input[type="text"]#password {
	padding-right: 44px;
}

.login-input-wrap input::placeholder {
	color: #c4b8be;
}

.login-input-wrap input:focus {
	border-color: #e5147e;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(229, 20, 126, 0.08);
}

.login-password-toggle {
	position: absolute;
	right: 6px;
	top: 6px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #b39ca8;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
	background: #f9eef4;
	color: #e5147e;
	outline: none;
}

.login-password-toggle .icon-eye-off,
.login-password-toggle.is-visible .icon-eye {
	display: none;
}

.login-password-toggle.is-visible .icon-eye-off {
	display: block;
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-width: 0;
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	cursor: pointer;
	font-size: 12.5px;
	color: #6b5c63;
	white-space: nowrap;
}

.login-remember input {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	accent-color: #e5147e;
}

.login-signup-link a,
.login-signup-action,
.login-help a {
	color: #e5147e;
	text-decoration: none;
}

.login-signup-link a:hover,
.login-signup-action:hover,
.login-help a:hover {
	color: #b80f64;
	text-decoration: underline;
}

.login-message {
	margin: -2px 0 -2px;
	min-height: 18px;
}

.login-message:empty {
	display: none;
}

.login-message.success {
	padding: 10px 12px;
	border-radius: 9px;
	background: #eaf7f0;
	color: #267452;
	font-size: 12px;
	line-height: 1.5;
}

/* 로그인 결과에서 이동하는 독립 계정 상태 화면입니다. */
.account-status-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(circle at 15% 15%, rgba(244, 175, 209, 0.28), transparent 34%),
		linear-gradient(145deg, #fffafd, #fdf1f7);
}

.account-status-card {
	width: min(480px, 100%);
	padding: 42px 38px 34px;
	border: 1px solid rgba(255, 255, 255, 0.88);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 24px 70px rgba(83, 55, 69, 0.16);
	text-align: center;
}

.account-status-card .login-logo {
	margin-bottom: 20px;
}

.account-status-mark {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 22px;
	background: linear-gradient(145deg, #fff0f8, #fbd8e9);
	color: #e5147e;
	font-size: 27px;
	font-weight: 900;
}

.account-status-card.is-rejected .account-status-mark {
	background: #fff0f1;
	color: #c94545;
}

.account-status-card h1 {
	margin: 0 0 12px;
	font-size: 26px;
	color: #33252c;
}

.account-status-card > p {
	margin: 0 auto 27px;
	max-width: 350px;
	color: #7f6d76;
	font-size: 14px;
	line-height: 1.75;
}

.account-status-actions {
	display: grid;
	gap: 10px;
}

.account-status-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.account-status-actions .primary {
	background: linear-gradient(135deg, #f0369a, #e5147e);
	color: #fff;
}

.account-status-help {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #f3e7ed;
	color: #a18f98;
	font-size: 12px;
}

.login-submit {
	height: 46px;
	margin-top: 0;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0369a 0%, #e5147e 100%);
	box-shadow: 0 6px 18px rgba(229, 20, 126, 0.28);
	color: #ffffff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
}

.login-submit:hover {
	filter: brightness(0.94);
}

.login-submit:active {
	transform: scale(0.99);
}

.login-submit:disabled {
	cursor: not-allowed;
	filter: grayscale(0.18);
	opacity: 0.72;
	box-shadow: none;
}

.login-signup-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
	font-size: 13px;
	color: #8a7a82;
}

.login-signup-link a {
	font-weight: 700;
}

.login-signup-action {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.login-help {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 26px;
	padding-top: 16px;
	border-top: 1px solid #f3eaef;
}

.login-help-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fdf0f7;
	color: #e5147e;
	font-size: 12px;
	font-weight: 800;
}

.login-help p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9c8c94;
}

.login-visual-panel {
	position: absolute;
	inset: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	background: #ddf0fc;
}

.login-visual-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg,
		rgba(231, 246, 255, 0.42) 0%,
		rgba(255, 255, 255, 0.08) 48%,
		rgba(75, 45, 59, 0.1) 100%);
	pointer-events: none;
}

.login-visual-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	user-select: none;
}

.login-visual-scrim {
	position: absolute;
	left: 0;
	top: 0;
	width: min(62%, 760px);
	height: 68%;
	background: radial-gradient(ellipse 100% 100% at 0% 0%,
		rgba(230, 245, 254, 0.9) 0%,
		rgba(234, 247, 254, 0.65) 40%,
		rgba(240, 249, 255, 0.3) 65%,
		rgba(255, 255, 255, 0) 85%);
	pointer-events: none;
}

.login-hero-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(28px, 4.5vw, 40px) clamp(32px, 5vw, 48px);
	max-width: min(760px, calc(100% - 500px));
	animation: login-hero-exit 400ms ease 1000ms forwards;
}

@keyframes login-hero-exit {
	to {
		opacity: 0;
		transform: translateY(-12px);
		visibility: hidden;
	}
}

.login-brand-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 18px 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 16px rgba(190, 60, 120, 0.12);
	color: #d01374;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	backdrop-filter: blur(8px);
}

.login-brand-pill span {
	display: flex;
	align-items: center;
	color: #e5147e;
}

.login-hero-copy h2 {
	margin: 0 0 12px;
	font-size: clamp(32px, 3.8vw, 42px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0;
	color: #c74e86;
	text-shadow: 0 2px 14px rgba(255, 255, 255, 0.8);
}

.login-hero-copy h2 span {
	color: #ed64a6;
}

.login-hero-copy p {
	margin: 0;
	color: #7d4b62;
	font-size: clamp(14px, 1.4vw, 16px);
	font-weight: 600;
}

.login-feature-card {
	display: inline-flex;
	align-items: stretch;
	margin-top: 4px;
	padding: 14px 6px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 6px 20px rgba(190, 60, 120, 0.1);
	backdrop-filter: blur(8px);
}

.login-feature-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 22px;
	color: #e5147e;
}

.login-feature-item span {
	color: #8a5a70;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.login-feature-separator {
	width: 1px;
	background: #f2d8e5;
}

.login-visual-footer {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
	padding: 64px clamp(32px, 5vw, 48px) 28px;
	background: linear-gradient(to top, rgba(60, 30, 20, 0.45), rgba(60, 30, 20, 0));
	color: rgba(255, 255, 255, 0.92);
	font-size: 12.5px;
	font-weight: 500;
}

.login-footer-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
}

/* ==================== 회원가입 화면 ==================== */

.signup-card {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: min(400px, calc(100% - 48px));
	height: min(620px, calc(100dvh - 48px));
	max-height: calc(100dvh - 48px);
	padding: 30px 32px 32px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 22px 60px rgba(83, 55, 69, 0.2);
	transform: translate(-50%, -50%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	animation: signup-card-enter 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
	overflow: hidden;
}

.login-inline-signup {
	animation: none;
}

.login-form-panel[hidden],
.login-inline-signup[hidden] {
	display: none;
}

@keyframes signup-card-enter {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.signup-card-inner {
	width: 100%;
}

.signup-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 22px;
	text-align: center;
}

.signup-header .login-logo {
	margin-bottom: 8px;
}

.signup-title {
	margin: 2px 0 6px;
	color: #e5147e;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.25;
}

.signup-subtitle {
	margin: 0;
	color: #8a7a82;
	font-size: 13px;
	line-height: 1.5;
}

.signup-card .step-indicator {
	margin-bottom: 24px;
}

.signup-card #signupForm {
	min-height: 268px;
	padding: 2px;
	overflow: hidden;
}

.signup-card .form-group {
	margin-bottom: 12px;
}

.signup-card .form-group input {
	padding-block: 12px;
}

.signup-card .form-message {
	min-height: 16px;
	margin: 0 0 10px;
}

.signup-card .form-message:empty {
	visibility: hidden;
}

.signup-card .btn-primary {
	padding-block: 13px;
}

.signup-card .btn-secondary {
	margin-top: 8px;
	padding-block: 11px;
}

.signup-step.is-leaving-forward {
	animation: signup-step-leave-left 220ms ease-in both;
}

.signup-step.is-leaving-backward {
	animation: signup-step-leave-right 220ms ease-in both;
}

.signup-step.is-entering-forward {
	animation: signup-step-enter-right 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.signup-step.is-entering-backward {
	animation: signup-step-enter-left 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes signup-step-leave-left {
	to {
		opacity: 0;
		transform: translateX(-36px);
	}
}

@keyframes signup-step-leave-right {
	to {
		opacity: 0;
		transform: translateX(36px);
	}
}

@keyframes signup-step-enter-right {
	from {
		opacity: 0;
		transform: translateX(36px);
	}
}

@keyframes signup-step-enter-left {
	from {
		opacity: 0;
		transform: translateX(-36px);
	}
}

.signup-login-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
	color: #8a7a82;
	font-size: 13px;
}

.signup-login-link a {
	color: #e5147e;
	font-weight: 700;
	text-decoration: none;
}

.signup-login-link a:hover {
	color: #b80f64;
	text-decoration: underline;
}

@media (max-width: 1180px) {
	.login-form-panel,
	.signup-card {
		width: 380px;
		padding-inline: 28px;
	}

	.login-hero-copy {
		max-width: calc(100% - 430px);
	}

	.login-feature-item {
		padding-inline: 16px;
	}
}

@media (max-width: 1040px) and (min-width: 901px) {
	.login-hero-copy {
		padding-inline: 30px;
	}

	.login-feature-card {
		display: none;
	}
}

@media (max-width: 900px) {
	body.login-page {
		overflow: auto;
		background: #fdfbfc;
	}

	.login-shell {
		display: block;
		min-height: 100vh;
		min-height: 100dvh;
		height: auto;
		padding: 168px 16px 24px;
		overflow: visible;
		background: linear-gradient(180deg, #eff9ff 0%, #ffffff 42%);
	}

	.login-form-panel {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		width: min(100%, 420px);
		height: auto;
		min-height: 0;
		max-height: none;
		margin: 0 auto;
		padding: 30px 28px;
		background: rgba(255, 255, 255, 0.97);
		border-radius: 18px;
		box-shadow: 0 16px 44px rgba(83, 55, 69, 0.16);
		filter: none;
		transform: none;
		animation-name: login-card-enter-mobile;
	}

	.signup-card {
		position: relative;
		top: auto;
		left: auto;
		width: min(100%, 420px);
		height: auto;
		max-height: none;
		margin: 0 auto;
		padding: 30px 28px;
		transform: none;
		animation-name: signup-card-enter-mobile;
	}

	@keyframes signup-card-enter-mobile {
		from {
			opacity: 0;
			transform: scale(0.985);
		}

		to {
			opacity: 1;
			transform: scale(1);
		}
	}

	@keyframes login-card-enter-mobile {
		from {
			opacity: 0;
			transform: translateY(24px) scale(0.985);
		}

		to {
			opacity: 1;
			transform: translateY(0) scale(1);
		}
	}

	.login-form-inner {
		max-width: 360px;
		margin: auto;
	}

	.login-visual-panel {
		inset: 0 0 auto;
		height: 220px;
	}

	.login-visual-panel::before {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.42));
	}

	.login-visual-image {
		object-position: center 42%;
	}

	.login-hero-copy,
	.login-visual-footer,
	.login-visual-scrim {
		display: none;
	}
}

@media (max-width: 420px) {
	.login-form-panel {
		padding: 28px 20px;
	}

	.signup-card {
		padding: 28px 20px;
	}

	.login-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.login-signup-link {
		flex-wrap: wrap;
	}
}

@media (max-height: 700px) and (min-width: 901px) {
	.login-form-panel {
		max-height: calc(100dvh - 24px);
		padding-block: 22px;
	}

	.login-logo-block {
		margin-bottom: 22px;
	}

	.login-help {
		margin-top: 24px;
	}

	.signup-card {
		max-height: calc(100dvh - 24px);
		padding-block: 22px;
	}

	.signup-header {
		margin-bottom: 16px;
	}

	.signup-header .login-logo {
		height: 48px;
		margin-bottom: 4px;
	}

	.signup-card .step-indicator {
		margin-bottom: 18px;
	}

	.login-hero-copy {
		gap: 12px;
		padding-top: 28px;
	}

	.login-feature-card {
		padding-block: 12px;
	}

}

@media (max-height: 560px) and (min-width: 901px) {
	.signup-card {
		overflow-y: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.login-form-panel {
		animation: none;
	}

	.signup-card,
	.signup-step {
		animation: none;
	}

	.login-hero-copy {
		display: none;
	}
}
