.auth-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 16px 48px;
}

.auth-card {
	width: 100%;
	max-width: 500px;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
	padding: 32px;
	box-sizing: border-box;
	color: #212121;
}

.auth-card * {
	box-sizing: border-box;
}

#old_login_div, #new_register_div{
	display: none;
	padding-top:20px;
}

.auth-card .auth-title {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	line-height: 1.3;
}

.auth-card .auth-title b {
	font-weight: 700;
}

.auth-tabs {
	display: flex;
	gap: 4px;
	width: 100%;
	max-width: 500px;
	background: #f0f0f0;
	/* border: 1px solid #e0e0e0; */
	border-radius: 16px;
	/* padding: 4px; */
	margin-bottom: 9px;
	box-sizing: border-box;
}

.auth-tab {
	flex: 1;
	box-sizing: border-box;
	display: block;
	text-align: center;
	padding: 10px 8px;
	font-size: 16px;
	font-weight: 600;
	color: #757575;
	border-radius: 12px;
	background: none;
	text-decoration: none;
	cursor: pointer;
	transition: color .15s, background .15s;
}

.auth-tab:hover {
	color: #212121;
}

.auth-tab.is-active {
	background: #fff;
	color: #000000;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
	font-weight: 800;
}

.auth-field {
	margin-bottom: 16px;
}

.auth-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #212121;
}

.auth-req {
	color: #d32f2f;
}

.auth-card .auth-input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	line-height: 1.4;
	color: #212121;
	background: #fff;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	transition: border-color .15s, box-shadow .15s;
}

.auth-card .auth-input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.auth-card .auth-input::placeholder {
	color: #9e9e9e;
}

.auth-card .auth-input:disabled {
	background: #f5f5f5;
	color: #9e9e9e;
}

.auth-input.field_error {
	border-color: #d32f2f;
	color: #d32f2f;
}

.auth-input.field_ok {
	border-color: #43a047;
}

.auth-input.field_loading {
	border-color: #ffa000;
}

.auth-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #757575;
}

.auth-hint.desc_error {
	color: #d32f2f;
}

.auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.auth-link {
	color: #1976d2;
	font-size: 14px;
	text-decoration: none;
}

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

.auth-keep {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 400;
	color: #757575;
	margin: 0;
	cursor: pointer;
}

.auth-keep input {
	accent-color: #1976d2;
	width: 16px;
	height: 16px;
	margin: 0;
}

.auth-card .auth-submit {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #1976d2;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}

.auth-card .auth-submit:hover {
	background: #1565c0;
}

.auth-card .auth-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #9e9e9e;
	font-size: 14px;
	margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid #e0e0e0;
}

.auth-divider span {
	padding: 0 12px;
}

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

.auth-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #212121;
	background: #fff;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.auth-social-btn:hover {
	background: #fafafa;
	border-color: #bdbdbd;
}

.auth-social-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.auth-social-btn--facebook svg {
	color: #1877f2;
}

.auth-social-btn--apple svg {
	color: #000;
}

.auth-alert {
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.45;
	border: 1px solid transparent;
}

.auth-alert strong {
	display: inline-block;
	margin-bottom: 2px;
}

.auth-alert--danger {
	background: #fdecea;
	border-color: #f5c6c2;
	color: #b71c1c;
}

.auth-alert--warning {
	background: #fff8e1;
	border-color: #ffe082;
	color: #8d6e00;
}

.auth-alert--success {
	background: #e8f5e9;
	border-color: #a5d6a7;
	color: #1b5e20;
}

.auth-alert a {
	color: inherit;
	text-decoration: underline;
}

.auth-checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 18px 0;
}

.auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: #424242;
	margin: 0;
	cursor: pointer;
}

.auth-check input {
	accent-color: #1976d2;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex-shrink: 0;
}

.auth-check a {
	color: #1976d2;
	text-decoration: none;
}

.auth-check a:hover {
	text-decoration: underline;
}

.auth-legal {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.45;
	color: #424242;
}

.auth-legal p {
	margin: 0 0 8px;
}

.auth-legal p:last-child {
	margin-bottom: 0;
}

.auth-legal a {
	color: #1976d2;
	text-decoration: none;
}

.auth-legal a:hover {
	text-decoration: underline;
}

.auth-center {
	text-align: center;
	margin-top: 20px;
}

.auth-recaptcha {
	display: flex;
	justify-content: center;
	margin: 16px 0;
}

.grecaptcha-badge {
	visibility: hidden;
}

.auth-recaptcha-note {
	font-size: 12px;
	line-height: 1.45;
	color: #9e9e9e;
	margin-top: 12px;
}

.auth-recaptcha-note a {
	color: inherit;
	text-decoration: underline;
}

.auth-hr {
	border: 0;
	border-top: 1px solid #f0f0f0;
	margin: 20px 0;
}

.auth-foot {
	font-size: 13px;
	color: #757575;
	line-height: 1.5;
}

.auth-foot a {
	color: #1976d2;
}

.auth-required-note {
	font-size: 12px;
	color: #9e9e9e;
	margin-top: 18px;
}

.auth-required-note .auth-req {
	margin-right: 2px;
}

.auth-oauth {
	text-align: center;
}

.auth-oauth-avatar {
	position: relative;
	display: inline-block;
	margin-bottom: 10px;
}

.auth-oauth-avatar img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px #e0e0e0;
	object-fit: cover;
	background: #fff;
}

.auth-oauth-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
}

.auth-oauth-badge::before {
	font-family: FontAwesome;
	font-style: normal;
	font-weight: 400;
}

.auth-oauth-avatar.facebook .auth-oauth-badge {
	background: #4267b2;
}

.auth-oauth-avatar.facebook .auth-oauth-badge::before {
	content: "\f09a";
}

.auth-oauth-avatar.google .auth-oauth-badge {
	background: #db4437;
}

.auth-oauth-avatar.google .auth-oauth-badge::before {
	content: "\f1a0";
}

.auth-oauth-avatar.apple .auth-oauth-badge {
	background: #000;
}

.auth-oauth-avatar.apple .auth-oauth-badge::before {
	content: "\f179";
}

.auth-oauth-name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 18px;
}

.auth-toggle {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.auth-toggle-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #f5f7fb;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	color: #212121;
	cursor: pointer;
	position: relative;
}

.auth-toggle-option input {
	accent-color: #1976d2;
	width: 18px;
	height: 18px;
	margin: 0;
}

.auth-toggle-option .chevron {
	margin-left: auto;
}

.auth-toggle-option .chevron::before {
	content: "\f054";
	font-family: FontAwesome;
	color: #9e9e9e;
}

.auth-toggle-option input:checked + span.chevron::before {
	transform: rotate(90deg);
	display: inline-block;
}

.auth-toggle-panel {
	padding: 4px 2px 8px;
	font-size: 14px;
	color: #424242;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.auth-page {
		padding: 12px 12px 32px;
	}

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

.auth-card textarea.auth-input {
	min-height: 120px;
	resize: vertical;
}
