/*-------------------------------------------------------------------------*/
/* Auth: Page background
/*-------------------------------------------------------------------------*/
body.page-auth-login .section-page,
body.page-auth-register .section-page {
	padding: 4rem 0 6rem;
	background-color: var(--background-base);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

body.page-auth-login .section-page {
	background-image:
		-webkit-linear-gradient(top, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/login/bg/bg-login-1536.webp');
	background-image:
		-o-linear-gradient(top, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/login/bg/bg-login-1536.webp');
	background-image:
		linear-gradient(to bottom, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/login/bg/bg-login-1536.webp');
}

body.page-auth-register .section-page {
	background-image:
		-webkit-linear-gradient(top, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/signup/bg/bg-signup-1536.webp');
	background-image:
		-o-linear-gradient(top, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/signup/bg/bg-signup-1536.webp');
	background-image:
		linear-gradient(to bottom, rgba(22,17,12,0) 40%, #16110c 100%),
		url('../../../assets/images/signup/bg/bg-signup-1536.webp');
}

/*-------------------------------------------------------------------------*/
/* Auth: Wrapper (centering)
/*-------------------------------------------------------------------------*/
.auth-wrapper,
.signup-wrapper {
	width: 100%;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

	padding: 2rem 1rem;

	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

/*-------------------------------------------------------------------------*/
/* Auth: Card
/*-------------------------------------------------------------------------*/
.auth-card,
.signup-card {
	max-width: 520px;
	width: 100%;
	margin: 0;

	background: -webkit-linear-gradient(325deg, rgba(33,22,15,0.92), rgba(11,7,4,0.95));
	background: -o-linear-gradient(325deg, rgba(33,22,15,0.92), rgba(11,7,4,0.95));
	background: linear-gradient(135deg, rgba(33,22,15,0.92), rgba(11,7,4,0.95));

	border: 1px solid rgba(91,64,33,0.55);
	border-radius: 22px;

	padding: 1.75rem 1.75rem 1.9rem;

	-webkit-box-shadow: 0 18px 36px rgba(0,0,0,0.6);
	box-shadow: 0 18px 36px rgba(0,0,0,0.6);

	overflow: hidden;
}

.signup-card {
	max-width: 560px;
	border-radius: 24px;
	padding: 1.85rem 1.9rem 2rem;
}

/* Glow overlay */
.auth-card::before,
.signup-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(circle at 20% 15%, rgba(254,227,115,0.16), transparent 55%),
		radial-gradient(circle at 80% 85%, rgba(141,75,21,0.16), transparent 60%);
	pointer-events: none;
}

/* Card title */
.auth-card h1,
.signup-card h1 {
	text-align: center;
	margin: 0.25rem 0 1.35rem;
	font-size: 1.32rem;
	letter-spacing: 0.05em;
	font-family: var(--font-family-secondary);
	color: var(--color-idle);
}

/* Card form */
.auth-card form,
.signup-card form {
	max-width: 440px;
	margin: 0 auto;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;

	gap: 0.65rem;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

/*-------------------------------------------------------------------------*/
/* Auth: Inputs
/*-------------------------------------------------------------------------*/
.auth-input {
	width: 100%;
	height: 46px !important;
	padding: 0.5rem 0.8rem !important;
	border: 1px solid rgba(0, 0, 0, 0.6) !important;
	border-bottom-color: rgba(80, 55, 30, 0.35) !important;
	border-radius: 8px !important;
	background: #0a0705 !important;
	color: var(--color-idle) !important;
	font-family: var(--font-family-tertiary);
	font-size: 0.9rem;
	-webkit-box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(0, 0, 0, 0.5);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(0, 0, 0, 0.5);
	-webkit-transition: border-color 200ms, box-shadow 200ms;
	-o-transition: border-color 200ms, box-shadow 200ms;
	transition: border-color 200ms, box-shadow 200ms;
}

.auth-input:focus {
	border-color: rgba(193, 154, 87, 0.55) !important;
	border-bottom-color: rgba(193, 154, 87, 0.3) !important;
	-webkit-box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
	background: #0a0705 !important;
	color: var(--color-idle) !important;
}

.auth-input::-webkit-input-placeholder { color: #a18d71; }
.auth-input::-moz-placeholder          { color: #a18d71; }
.auth-input:-ms-input-placeholder      { color: #a18d71; }
.auth-input::placeholder               { color: #a18d71; }

/*-------------------------------------------------------------------------*/
/* Auth: Field error
/*-------------------------------------------------------------------------*/
.auth-field-error {
	width: 100%;
	margin: -0.3rem 0 0;
	color: #e85555;
	font-size: 0.8rem;
	font-family: var(--font-family-tertiary);
	min-height: 0;
}

.auth-field-error:empty {
	display: none;
}

/*-------------------------------------------------------------------------*/
/* Auth: Error feedback (ajax login)
/*-------------------------------------------------------------------------*/
.auth-card .error-feedback {
	width: 100%;
	border-radius: 8px !important;
	font-size: 0.875rem;
	font-family: var(--font-family-tertiary);
}

/*-------------------------------------------------------------------------*/
/* Auth: Captcha block
/*-------------------------------------------------------------------------*/
.auth-captcha-wrap {
	width: 100%;
}

.auth-captcha-inner {
	width: 100%;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	gap: 0.5rem;
	flex-wrap: wrap;
}

.auth-captcha-img {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	cursor: pointer;
	margin: 0;
	line-height: 0;
}

.auth-captcha-img img {
	-webkit-border-radius: 6px;
	border-radius: 6px;
	-webkit-filter: grayscale(0.5);
	filter: grayscale(0.5);
	display: block;
}

.auth-captcha-refresh {
	color: var(--color-inactive);
	cursor: pointer;
	font-size: 1rem;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-transition: color 150ms;
	-o-transition: color 150ms;
	transition: color 150ms;
}

.auth-captcha-refresh:hover {
	color: var(--color-active);
}

.auth-captcha-inner .auth-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 100px;
}

/*-------------------------------------------------------------------------*/
/* Auth: Remember row
/*-------------------------------------------------------------------------*/
.auth-remember {
	width: 100%;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;

	margin-top: 0.15rem;

	color: #cbbd9c;
	font-size: 0.9rem;
	font-family: var(--font-family-tertiary);
}

.auth-remember label {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.auth-remember input[type="checkbox"] {
	accent-color: #9b7a52;
	width: auto;
	height: auto;
	cursor: pointer;
}

.auth-remember a {
	color: var(--color-active);
	text-decoration: none;
	font-size: 0.875rem;
}

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

/*-------------------------------------------------------------------------*/
/* Auth: Submit button
/*-------------------------------------------------------------------------*/
.auth-submit,
.signup-submit {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

	margin-top: 1.25rem;
	width: 100%;
	padding: .65rem 1.5rem;

	background: -webkit-linear-gradient(315deg, rgba(110, 78, 28, 0.55), rgba(36, 23, 8, 0.92));
	background: -o-linear-gradient(315deg, rgba(110, 78, 28, 0.55), rgba(36, 23, 8, 0.92));
	background: linear-gradient(135deg, rgba(110, 78, 28, 0.55), rgba(36, 23, 8, 0.92));
	border: 1px solid rgba(254, 227, 115, 0.35);
	border-radius: 999px;

	color: var(--color-idle);
	font-family: var(--font-family-nav);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;

	cursor: pointer;

	-webkit-transition: -webkit-box-shadow .2s ease, -webkit-transform .2s ease, border-color .2s ease;
	transition: -webkit-box-shadow .2s ease, -webkit-transform .2s ease, border-color .2s ease;
	-o-transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.auth-submit:hover,
.auth-submit:focus,
.signup-submit:hover,
.signup-submit:focus {
	border-color: rgba(254, 227, 115, 0.65);
	color: var(--color-active);
	-webkit-box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
	-webkit-transform: translateY(-1px);
	-ms-transform: translateY(-1px);
	transform: translateY(-1px);
}

.auth-submit:focus-visible,
.signup-submit:focus-visible {
	outline: 1px solid rgba(254, 227, 115, 0.65);
	outline-offset: 4px;
}

/*-------------------------------------------------------------------------*/
/* Auth: Alt link ("Don't have an account?")
/*-------------------------------------------------------------------------*/
.auth-alt-link {
	margin: 0.25rem 0 0;
	text-align: center;
	color: #cbbd9c;
	font-size: 0.9rem;
	font-family: var(--font-family-tertiary);
}

.auth-alt-link a {
	color: var(--color-active);
	text-decoration: none;
}

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

/*-------------------------------------------------------------------------*/
/* Auth: Screen-reader only
/*-------------------------------------------------------------------------*/
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/*-------------------------------------------------------------------------*/
/* Auth: Responsive
/*-------------------------------------------------------------------------*/
@media screen and (max-width: 540px) {
	.auth-card {
		padding: 1.5rem 1.35rem 1.65rem;
		border-radius: 20px;
	}

	.signup-card {
		padding: 1.6rem 1.45rem 1.8rem;
		border-radius: 22px;
	}

	.auth-card form,
	.signup-card form {
		max-width: 100%;
	}
}
