body.page-template-template-auth,
body.page-template-template-auth-php,
body.page-template-page-auth,
body.page-template-page-auth-php {
	background: #fff;
}

.ph-auth-page {
	position: relative;
	width: 100%;
	min-height: 720px;
	padding: 46px 20px 64px;
	overflow: hidden;
	background: #fff;
}

.ph-auth-shell {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	z-index: 5;
}

.ph-auth-card {
	background: #fff;
	border-radius: 20px;
	padding: 46px 56px 44px;
	box-shadow: none;
}

.ph-auth-card--register {
	padding-top: 38px;
}

.ph-auth-title {
	margin: 0 0 26px;
	text-align: center;
	color: #010926;
	font-family: var(--ph-font-heading);
	font-size: 52px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.09;
	letter-spacing: -0.03em;
}

.ph-auth-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.ph-auth-switch-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #c7cfdb;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: 0.2s ease;
}

.ph-auth-switch-link:hover {
	border-color: #492CED;
}

.ph-auth-switch-link.is-active {
	border-color: #010926;
	background: #010926;
	color: #fff;
}

.ph-auth-desc {
	margin: 0 0 26px;
	text-align: center;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.33;
}

.ph-auth-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ph-auth-input,
.ph-auth-select {
	width: 100%;
	height: 45px;
	min-height: 45px;
	border: 1.5px solid #010926;
	border-radius: 5px;
	background: #fff;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	padding: 12px 22px;
}

.ph-auth-input::placeholder {
	color: rgba(1, 9, 38, 0.5);
}

.ph-auth-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #010926 50%), linear-gradient(135deg, #010926 50%, transparent 50%);
	background-position: calc(100% - 23px) calc(50% - 2px), calc(100% - 17px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 44px;
}

.ph-auth-input-wrap {
	position: relative;
}

.ph-auth-input-wrap .ph-auth-input {
	padding-right: 52px;
}

.ph-auth-toggle {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	border: 0;
	background: transparent;
	color: #010926;
	padding: 0;
	cursor: pointer;
	transition: color var(--ph-transition-fast), opacity var(--ph-transition-fast);
}

.ph-auth-toggle:hover {
	color: #492CED;
	opacity: 0.9;
}

.ph-auth-hint {
	margin: -2px 0 10px;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
}

.ph-auth-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 2px;
}

.ph-auth-consent input[type="checkbox"] {
	width: 15px;
	height: 15px;
	min-width: 15px;
	min-height: 15px;
	margin: 1px 0 0;
	accent-color: #010926;
	padding: 0;
	border-radius: 3px;
}

.ph-auth-consent-text {
	margin: 0;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
}

.ph-auth-consent-text a {
	color: #010926;
	text-decoration: underline;
	font-weight: 500;
}

.ph-auth-btn,
button.ph-auth-btn,
input.ph-auth-btn[type="submit"] {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 48px;
	height: 48px;
	margin-top: 6px;
	border: 0;
	border-radius: 900px;
	background: linear-gradient(101deg, #BBD836 1.01%, #010926 165.32%);
	color: #fff;
	font-family: var(--ph-font-base);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.33;
	letter-spacing: 0;
	text-transform: none;
	padding: 0 24px;
	cursor: pointer;
	transition: background-color var(--ph-transition-fast), color var(--ph-transition-fast), box-shadow var(--ph-transition-fast);
}

.ph-auth-btn:hover,
button.ph-auth-btn:hover,
input.ph-auth-btn[type="submit"]:hover {
	background: #492CED;
	color: #fff;
	box-shadow: 0 10px 24px rgba(1, 9, 38, 0.16);
}

.ph-auth-btn:active,
button.ph-auth-btn:active,
input.ph-auth-btn[type="submit"]:active {
	box-shadow: inset 0 0 0 999px rgba(1, 9, 38, 0.04);
}

.ph-auth-oauth {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ph-auth-oauth-btn {
	width: 100%;
	min-height: 45px;
	border: 1.5px solid #010926;
	border-radius: 5px;
	background: #fff;
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.33;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background-color var(--ph-transition-fast), border-color var(--ph-transition-fast), color var(--ph-transition-fast);
}

.ph-auth-oauth-btn span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ph-auth-oauth-btn:hover,
.ph-auth-oauth-btn:focus-visible {
	border-color: #492CED;
	background: #492CED;
	color: #fff;
}

.ph-auth-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	font-family: var(--ph-font-base);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
}

.ph-auth-brand-icon--google {
	color: #ea4335;
}

.ph-auth-brand-icon--facebook {
	color: #1877f2;
}

.ph-auth-links {
	margin-top: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ph-auth-link {
	color: #010926;
	font-family: var(--ph-font-base);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.33;
	text-decoration: none;
}

.ph-auth-link:hover {
	text-decoration: underline;
}

.ph-auth-link--register,
.ph-auth-link[data-tab="register"] {
	color: #BBD836;
	font-weight: 700;
}

.ph-auth-link--register:hover,
.ph-auth-link--register:focus-visible,
.ph-auth-link[data-tab="register"]:hover,
.ph-auth-link[data-tab="register"]:focus-visible {
	color: #492CED;
}

.ph-auth-extra-fields {
	display: none;
}

.ph-auth-extra-fields.is-visible {
	display: block;
}

.ph-auth-messages {
	margin-bottom: 16px;
}

.ph-auth-messages .error-message,
.ph-auth-messages .success-message,
.ph-auth-messages .ph-auth-flash {
	border-radius: 8px;
	padding: 12px 14px;
	font-family: var(--ph-font-base);
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: 8px;
	overflow-wrap: anywhere;
}

.ph-auth-form .g-recaptcha {
	margin-top: 4px;
	max-width: 100%;
	overflow: hidden;
}

.ph-auth-form .g-recaptcha > div {
	max-width: 100% !important;
}

.ph-auth-messages .error-message,
.ph-auth-messages .ph-auth-flash.is-error {
	background: #fde8e8;
	color: #8a1f1f;
}

.ph-auth-messages .success-message,
.ph-auth-messages .ph-auth-flash.is-success {
	background: #F6FAE8;
	color: #010926;
}

.ph-auth-notice {
	border: 1.5px solid #BBD836;
	border-radius: 20px;
	position: relative;
	padding: 44px 48px;
	margin-bottom: 20px;
	background: #fff;
}

.ph-auth-notice-title {
	margin: 0 0 12px;
	text-align: center;
	color: #010926;
	font-family: var(--ph-font-heading);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
}

.ph-auth-notice-text {
	margin: 0;
	color: #010926;
	text-align: center;
	font-family: var(--ph-font-base);
	font-size: 15px;
	line-height: 1.33;
}

.ph-auth-notice-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	border: 1px solid #010926;
	border-radius: 999px;
	background: #fff;
	color: #010926;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ph-auth-decor {
	position: absolute;
	display: grid;
	grid-template-columns: repeat(2, 136px);
	grid-auto-rows: 136px;
	gap: 17px;
	z-index: 1;
	pointer-events: none;
}

.ph-auth-decor--left {
	left: 24px;
	top: 34px;
}

.ph-auth-decor--right {
	right: 24px;
	top: 170px;
}

.ph-auth-tile {
	width: 136px;
	height: 136px;
	border-radius: 136px 136px 0 136px;
	background: #BBD836;
}

.ph-auth-tile--soft {
	opacity: 0.5;
}

.ph-auth-tile--rot-90 {
	transform: rotate(90deg);
}

.ph-auth-tile--rot-180 {
	transform: rotate(180deg);
}

.ph-auth-tile--rot-270 {
	transform: rotate(270deg);
}

.ph-auth-tile--left-bottom {
	grid-column: 1;
	grid-row: 3;
}

.ph-auth-tile--right-top {
	grid-column: 2;
	grid-row: 1;
}

.ph-auth-tile--right-mid {
	grid-column: 2;
	grid-row: 2;
}

.ph-auth-tile--right-bottom-left {
	grid-column: 1;
	grid-row: 3;
}

.ph-auth-tile--right-bottom-right {
	grid-column: 2;
	grid-row: 3;
}

@media (max-width: 1360px) {
	.ph-auth-decor {
		opacity: 0.7;
	}

	.ph-auth-decor--left,
	.ph-auth-decor--right {
		transform: scale(0.85);
	}

	.ph-auth-decor--left {
		left: -26px;
	}

	.ph-auth-decor--right {
		right: -26px;
	}
}

@media (max-width: 1200px) {
	.ph-auth-decor {
		display: none;
	}
}

@media (max-width: 767px) {
	.ph-auth-page {
		padding: 26px 10px 44px;
		min-height: auto;
	}

	.ph-auth-shell {
		max-width: 100%;
	}

	.ph-auth-card,
	.ph-auth-card--register {
		border-radius: 0;
		padding: 0;
		background: transparent;
	}

	.ph-auth-title {
		font-size: clamp(34px, 11vw, 44px);
		line-height: 1.06;
		margin-bottom: 22px;
	}

	.ph-auth-input,
	.ph-auth-select {
		padding-inline: 14px;
	}

	.ph-auth-switch {
		gap: 6px;
		margin-bottom: 12px;
	}

	.ph-auth-switch-link {
		font-size: 12px;
		min-height: 30px;
		padding: 6px 10px;
	}

	.ph-auth-desc {
		max-width: 320px;
		margin: 0 auto 18px;
		font-size: 14px;
		line-height: 1.35;
	}

	.ph-auth-btn,
	button.ph-auth-btn,
	input.ph-auth-btn[type="submit"] {
		min-height: 44px;
		height: 44px;
	}

	.ph-auth-oauth {
		margin-top: 18px;
		gap: 9px;
	}

	.ph-auth-oauth-btn {
		min-height: 42px;
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		padding: 10px 10px;
		gap: 8px;
	}

	.ph-auth-form .g-recaptcha {
		transform-origin: left top;
	}

	.ph-auth-links {
		margin-top: 16px;
		gap: 6px;
	}

	.ph-auth-link {
		font-size: 14px;
	}

	.ph-auth-decor {
		display: grid;
		opacity: 0.45;
	}

	.ph-auth-decor--left {
		left: -80px;
		top: auto;
		bottom: -20px;
		transform: scale(0.75);
	}

	.ph-auth-decor--right {
		display: none;
	}

	.ph-auth-notice {
		padding: 22px 16px;
		margin-bottom: 12px;
	}

	.ph-auth-notice-close {
		width: 38px;
		height: 38px;
		min-width: 38px;
		min-height: 38px;
		top: 12px;
		right: 12px;
		font-size: 22px;
	}

	.ph-auth-notice-title {
		font-size: 26px;
	}

	.ph-auth-notice-text {
		font-size: 14px;
	}
}

@media (max-width: 359px) {
	.ph-auth-form .g-recaptcha {
		transform: scale(0.92);
	}
}
