.auth-page {
	min-height: calc(100vh - 160px);
	padding: 48px 20px 70px;
	background: #f3f5f7;
}

.auth-card {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 30px;
	border: 1px solid #dbe2ea;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(31, 41, 55, .09);
}

.auth-card__head {
	margin-bottom: 24px;
}

.auth-card__eyebrow {
	display: inline-block;
	margin-bottom: 7px;
	color: #1769c2;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.auth-card__head h1 {
	margin: 0 0 8px;
	color: #1f2937;
	font-size: clamp(28px, 5vw, 38px);
}

.auth-card__head p {
	max-width: 560px;
	margin: 0;
	color: #64748b;
	line-height: 1.6;
}

.auth-errors {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid #fecaca;
	border-radius: 10px;
	background: #fff1f2;
	color: #9f1239;
	font-size: 14px;
}

.auth-errors ul {
	margin: 7px 0 0;
	padding-left: 20px;
}

.auth-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 17px;
}

.auth-form label > span {
	display: block;
	margin-bottom: 6px;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
}

.auth-form input:not([type="checkbox"]) {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfd8e3;
	border-radius: 9px;
	background: #fff;
	color: #1f2937;
	font: inherit;
}

.auth-form input:focus {
	border-color: #1769c2;
	outline: 3px solid rgba(23, 105, 194, .12);
}

.auth-form small {
	display: block;
	margin-top: 5px;
	color: #64748b;
	font-size: 12px;
}

.auth-form__terms {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 20px 0;
	color: #475569;
	font-size: 13px;
	line-height: 1.5;
}

.auth-form__terms input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.auth-form__terms span {
	margin: 0;
	font-weight: 400;
}

.auth-form__terms a,
.auth-card__login a {
	color: #1769c2;
	font-weight: 700;
}

.auth-form__submit {
	width: 100%;
	min-height: 48px;
	padding: 11px 18px;
	border: 0;
	border-radius: 10px;
	background: #1769c2;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(23, 105, 194, .2);
}

.auth-form__submit:hover {
	background: #1156a1;
}

.auth-card__login {
	margin: 20px 0 0;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

@media (max-width: 640px) {
	.auth-page {
		padding: 24px 12px 45px;
	}

	.auth-card {
		padding: 21px 16px;
		border-radius: 14px;
	}

	.auth-form__grid {
		grid-template-columns: 1fr;
	}
}


.auth-card--login {
	width: min(500px, 100%);
}

.auth-form__stack {
	display: grid;
	gap: 17px;
}

.auth-form__options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 16px 0 20px;
	font-size: 13px;
}

.auth-form__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #475569;
}

.auth-form__remember span {
	margin: 0;
	font-weight: 400;
}

.auth-form__options a {
	color: #1769c2;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 440px) {
	.auth-form__options {
		align-items: flex-start;
		flex-direction: column;
	}
}

.auth-notice {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	background: #ecfdf5;
	color: #065f46;
	font-size: 14px;
}

.auth-card--verify {
	width: min(520px, 100%);
}

.auth-verify__phone {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #475569;
	text-align: center;
}

.auth-form--verify {
	display: grid;
	gap: 18px;
}

.auth-form .auth-code {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: .25em;
	text-align: center;
}

.auth-verify__actions {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
}

.auth-verify__actions form {
	margin: 0;
}

.auth-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1769c2;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.auth-link-button:disabled {
	color: #94a3b8;
	cursor: not-allowed;
}

@media (max-width: 440px) {
	.auth-verify__actions {
		align-items: flex-start;
		flex-direction: column;
	}
}

.auth-form label > .auth-password-field {
	position: relative;
	display: block;
	margin: 0;
}

.auth-password-field input {
	padding-right: 48px !important;
}

.auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
	background: #eff6ff;
	color: #1769c2;
	outline: none;
}

.auth-password-toggle svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.auth-password-toggle__hide,
.auth-password-toggle.is-visible .auth-password-toggle__show {
	display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle__hide {
	display: block;
}
