/*
 * Get Sitevari Pro and the sign-in page, full screen (AuthScreen, LoginScreen; docs/mockups/auth-pages): the navy glow,
 * one white card, the form beside a glass-panels picture. Used on the shop's own page and inside WordPress's sign-in
 * page (body.login.svcc-auth-login, whose own styles are calmed down below).
 */

.svcc-auth {
	--svcc-auth-blue: #2864f6;
	--svcc-auth-blue-deep: #1d4fd1;
	--svcc-auth-ink: #0f172a;
	--svcc-auth-muted: #5d6679;
	--svcc-auth-faint: #8a93a6;
	--svcc-auth-line: #e3e9f3;
	--svcc-auth-soft: #f5f8fe;
	--svcc-auth-art-ink: #101a3d;
	--svcc-auth-art-muted: #4a5478;

	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-block-size: 100dvh;
	padding: clamp(0.75rem, 4vw, 3.5rem);
	background: #0a1433 url("images/auth-bg.webp") center bottom / cover no-repeat;
	color: var(--svcc-auth-ink);
	font-family: Poppins, Vazirmatn, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-align: start;
}

.svcc-auth *,
.svcc-auth *::before,
.svcc-auth *::after {
	box-sizing: border-box;
}

.svcc-auth input,
.svcc-auth button,
.svcc-auth select {
	font-family: inherit;
}

.svcc-auth a {
	color: var(--svcc-auth-blue);
	text-decoration: none;
}

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

.svcc-auth :focus-visible {
	outline: 2px solid var(--svcc-auth-blue);
	outline-offset: 2px;
}

.svcc-auth .svcc-store__icon {
	flex: none;
	inline-size: 1em;
	block-size: 1em;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.svcc-auth .screen-reader-text {
	position: absolute;
	overflow: hidden;
	inline-size: 1px;
	block-size: 1px;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The card: the form side and the picture side */

.svcc-auth__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	inline-size: 100%;
	max-inline-size: 68rem;
	min-block-size: min(45rem, calc(100dvh - 7rem));
	padding: 0.5rem;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 2.5rem 5.5rem -2.5rem rgb(0 0 0 / 60%);
}

.svcc-auth__side {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-inline-size: 0;
	padding: 2.25rem 2.75rem 1.75rem;
}

.svcc-auth__logo {
	align-self: flex-start;
}

.svcc-auth__logo img {
	display: block;
	inline-size: auto;
	block-size: 1.9rem;
}

.svcc-auth__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	inline-size: 100%;
	max-inline-size: 24rem;
	margin-inline: auto;
	padding-block: 1rem;
}

.svcc-auth__intro {
	margin-block-end: 0.5rem;
	text-align: center;
}

.svcc-auth__intro h1,
.svcc-auth__intro h2 {
	margin: 0;
	color: var(--svcc-auth-ink);
	font-family: inherit;
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.svcc-auth__intro p {
	margin: 0.6rem 0 0;
	color: var(--svcc-auth-muted);
	font-size: 0.95rem;
}

.svcc-auth__google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	block-size: 3rem;
	border: 1px solid var(--svcc-auth-line);
	border-radius: 999px;
	background: #fff;
	color: var(--svcc-auth-ink);
	font-weight: 500;
}

.svcc-auth a.svcc-auth__google {
	color: var(--svcc-auth-ink);
	text-decoration: none;
}

.svcc-auth__google:hover {
	border-color: #c9d4e6;
	background: var(--svcc-auth-soft);
}

.svcc-auth__google svg {
	flex: none;
}

.svcc-auth__fine {
	margin: -0.25rem 0 0;
	color: var(--svcc-auth-muted);
	font-size: 0.8rem;
	text-align: center;
}

.svcc-auth__or {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--svcc-auth-faint);
	font-size: 0.8rem;
}

.svcc-auth__or::before,
.svcc-auth__or::after {
	flex: 1;
	block-size: 1px;
	background: var(--svcc-auth-line);
	content: "";
}

/* The sign-up form */

.svcc-auth__form {
	display: grid;
	gap: 1rem;
	margin: 0;
}

.svcc-auth__field {
	display: grid;
	gap: 0.4rem;
	margin: 0;
}

.svcc-auth__field label {
	font-size: 0.85rem;
	font-weight: 500;
}

.svcc-auth__field input {
	inline-size: 100%;
	block-size: 2.9rem;
	padding-inline: 0.9rem;
	border: 1px solid var(--svcc-auth-line);
	border-radius: 0.75rem;
	background: #fff;
	color: var(--svcc-auth-ink);
	font-size: 0.95rem;
}

.svcc-auth__field input:focus {
	border-color: var(--svcc-auth-blue);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px rgb(40 100 246 / 15%);
}

.svcc-auth__field input[aria-invalid="true"] {
	border-color: #c62828;
}

.svcc-auth__error {
	color: #b42318;
	font-size: 0.8rem;
}

.svcc-auth__agree-row {
	display: grid;
	gap: 0.3rem;
}

.svcc-auth__agree {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--svcc-auth-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.svcc-auth__agree input {
	flex: none;
	inline-size: 1.05rem;
	block-size: 1.05rem;
	margin: 0.15rem 0 0;
	accent-color: var(--svcc-auth-blue);
}

.svcc-auth__agree a,
.svcc-auth__fine a {
	font-weight: 500;
}

.svcc-auth__agree .svcc-store__icon,
.svcc-auth__fine .svcc-store__icon {
	margin-inline-start: 0.2em;
	font-size: 0.8em;
	vertical-align: -0.05em;
}

.svcc-auth__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	inline-size: 100%;
	block-size: 3rem;
	padding-inline: 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--svcc-auth-blue);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
}

.svcc-auth a.svcc-auth__button {
	color: #fff;
	text-decoration: none;
}

.svcc-auth__button:hover {
	background: var(--svcc-auth-blue-deep);
}

.svcc-auth__button .svcc-store__icon {
	font-size: 1.1rem;
}

.svcc-auth__swap {
	margin: 0;
	color: var(--svcc-auth-muted);
	font-size: 0.88rem;
	text-align: center;
}

.svcc-auth__swap a {
	font-weight: 500;
}

.svcc-auth__note {
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid #dbe5fb;
	border-radius: 0.75rem;
	background: var(--svcc-auth-soft);
	font-size: 0.88rem;
}

.svcc-auth__note--ok {
	border-color: #bbe8cc;
	background: #ecfdf3;
	color: #0b5e3a;
}

.svcc-auth__note--error {
	border-color: #f6c9c4;
	background: #fef3f2;
	color: #9b1c13;
}

.svcc-auth__trap {
	position: absolute;
	overflow: hidden;
	inline-size: 1px;
	block-size: 1px;
	clip-path: inset(50%);
}

.svcc-auth__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	color: var(--svcc-auth-faint);
	font-size: 0.8rem;
}

.svcc-auth__foot nav {
	display: flex;
	gap: 1rem;
}

.svcc-auth .svcc-auth__foot a {
	color: inherit;
}

.svcc-auth .svcc-auth__foot a:hover {
	color: var(--svcc-auth-ink);
}

/*
 * The picture side: the page's navy fading into Sitevari blue over the picture's top, white words on it, and the
 * glass card at the bottom with dark words (owner's choice, 2026-11-07: docs/mockups/auth-pages/gradient-b-*).
 */

.svcc-auth__art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	overflow: hidden;
	isolation: isolate;
	padding: 2.5rem;
	border-radius: 1.1rem;
	background: #1a46c8 url("images/auth-picture.webp") 60% center / cover no-repeat;
	color: #fff;
}

.svcc-auth__art::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgb(12 28 92 / 95%) 0%, rgb(26 70 200 / 85%) 28%, rgb(37 106 255 / 40%) 50%, rgb(37 106 255 / 0%) 70%);
	content: "";
}

.svcc-auth__words > * {
	margin: 0;
}

.svcc-auth__words > * + * {
	margin-block-start: 0.75rem;
}

.svcc-auth__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.8rem;
	border: 1px solid rgb(255 255 255 / 38%);
	border-radius: 999px;
	background: rgb(255 255 255 / 16%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 500;
}

.svcc-auth__headline {
	max-inline-size: 25rem;
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.svcc-auth__words > .svcc-auth__pill + .svcc-auth__headline {
	margin-block-start: 1rem;
}

.svcc-auth__sub {
	max-inline-size: 24rem;
	color: rgb(255 255 255 / 86%);
	font-size: 0.95rem;
}

.svcc-auth__glass {
	display: grid;
	color: var(--svcc-auth-art-ink);
	gap: 0.9rem;
	padding: 1.4rem 1.5rem;
	border: 1px solid rgb(255 255 255 / 85%);
	border-radius: 1.1rem;
	background: rgb(255 255 255 / 62%);
	box-shadow: 0 1.1rem 2.5rem -1.5rem rgb(40 50 140 / 45%);
	backdrop-filter: blur(16px);
}

.svcc-auth__glass > * {
	margin: 0;
}

.svcc-auth__glass-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.svcc-auth__glass-top strong {
	font-size: 0.95rem;
	font-weight: 600;
}

.svcc-auth__glass-top span,
.svcc-auth__small {
	color: var(--svcc-auth-art-muted);
	font-size: 0.78rem;
}

.svcc-auth__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
}

.svcc-auth__price strong {
	font-size: 2.4rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
}

.svcc-auth__price span {
	color: var(--svcc-auth-art-muted);
	font-size: 0.82rem;
}

.svcc-auth__ticks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.9rem;
	padding: 0;
	font-size: 0.82rem;
	list-style: none;
}

.svcc-auth__ticks li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.svcc-auth__ticks .svcc-store__icon {
	color: var(--svcc-auth-blue);
	font-size: 1rem;
	stroke-width: 2.4;
}

.svcc-auth__small {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.svcc-auth__rows {
	display: grid;
	padding: 0;
	list-style: none;
}

.svcc-auth__rows li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.6rem;
	border-block-end: 1px solid rgb(40 100 246 / 12%);
	font-size: 0.82rem;
}

.svcc-auth__rows li:first-child {
	padding-block-start: 0;
}

.svcc-auth__rows li:last-child {
	padding-block-end: 0;
	border: 0;
}

.svcc-auth__rows strong {
	display: block;
	font-size: 0.88rem;
	font-weight: 500;
}

.svcc-auth__rows li > span:last-child > span {
	color: var(--svcc-auth-art-muted);
}

.svcc-auth__tile {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 2.1rem;
	block-size: 2.1rem;
	border-radius: 0.6rem;
	background: #fff;
	box-shadow: 0 0.25rem 0.6rem -0.35rem rgb(40 100 246 / 50%);
	color: var(--svcc-auth-blue);
	font-size: 1.05rem;
}

/* Narrow screens: one column, the form first */

@media (width <= 56rem) {
	.svcc-auth__card {
		grid-template-columns: 1fr;
		min-block-size: 0;
	}

	.svcc-auth__side {
		padding: 1.5rem 1.25rem 1.25rem;
	}

	.svcc-auth__art {
		padding: 1.5rem;
	}

	.svcc-auth__headline,
	.svcc-auth__intro h1,
	.svcc-auth__intro h2 {
		font-size: 1.6rem;
	}
}

@media (width <= 26rem) {
	.svcc-auth__ticks {
		grid-template-columns: 1fr;
	}
}

/* Inside WordPress's sign-in page: its own boxes and floats made to fit the card */

body.login.svcc-auth-login {
	min-inline-size: 0;
	background: #0a1433;
}

.svcc-auth-login .svcc-auth .wp-login-logo,
.svcc-auth-login .svcc-auth #backtoblog,
.svcc-auth-login .svcc-auth .privacy-policy-page-link {
	display: none;
}

.svcc-auth-login .svcc-auth #login {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	inline-size: 100%;
	margin: 0;
	padding: 0;
}

.svcc-auth-login .svcc-auth__body > .svcc-auth__swap {
	order: 1;
}

.svcc-auth-login .svcc-auth__body > .language-switcher {
	order: 2;
}

.svcc-auth-login.login .svcc-auth form {
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-weight: 400;
}

.svcc-auth-login.login .svcc-auth form p {
	margin: 0;
}

.svcc-auth-login.login .svcc-auth form label {
	margin-block-end: 0.4rem;
	color: var(--svcc-auth-ink);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
}

.svcc-auth-login.login .svcc-auth form .input,
.svcc-auth-login.login .svcc-auth input[type="text"],
.svcc-auth-login.login .svcc-auth input[type="email"],
.svcc-auth-login.login .svcc-auth input[type="password"] {
	inline-size: 100%;
	min-block-size: 0;
	block-size: 2.9rem;
	margin: 0 0 1rem;
	padding: 0 0.9rem;
	border: 1px solid var(--svcc-auth-line);
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: none;
	color: var(--svcc-auth-ink);
	font-size: 0.95rem;
	line-height: normal;
}

.svcc-auth-login.login .svcc-auth input[type="password"],
.svcc-auth-login.login .svcc-auth .wp-pwd input[type="text"] {
	padding-inline-end: 3rem;
}

.svcc-auth-login.login .svcc-auth form .input:focus,
.svcc-auth-login.login .svcc-auth input[type="text"]:focus,
.svcc-auth-login.login .svcc-auth input[type="password"]:focus {
	border-color: var(--svcc-auth-blue);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px rgb(40 100 246 / 15%);
}

.svcc-auth-login.login .svcc-auth .wp-pwd {
	position: relative;
}

.svcc-auth-login.login .svcc-auth .button.wp-hide-pw {
	inset-block-start: 0;
	inline-size: 3rem;
	block-size: 2.9rem;
	min-block-size: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--svcc-auth-muted);
}

/*
 * Remember Me: the box, its words and WordPress's help tip (7.1+) on one centre line, and room above the button.
 * WordPress zeroes this row's margin with `#login form p`, so the room needs the same id.
 */
.svcc-auth-login.login .svcc-auth .forgetmenot {
	float: none;
	align-items: center;
	gap: 0.5rem;
	min-block-size: 0;
}

.svcc-auth-login .svcc-auth #login form .forgetmenot {
	margin-block: 0.25rem 1.5rem;
}

.svcc-auth-login.login .svcc-auth .forgetmenot label {
	margin: 0;
	color: var(--svcc-auth-muted);
	font-weight: 400;
	line-height: 1.5;
}

.svcc-auth-login.login .svcc-auth .forgetmenot input[type="checkbox"] {
	margin: 0;
}

.svcc-auth-login.login .svcc-auth input[type="checkbox"] {
	border-color: #c9d4e6;
	border-radius: 0.3rem;
}

.svcc-auth-login.login .svcc-auth .submit,
.svcc-auth-login.login .svcc-auth .reset-pass-submit {
	display: grid;
	gap: 0.75rem;
	clear: both;
	padding: 0;
}

.svcc-auth-login.login .svcc-auth .button-primary,
.svcc-auth-login.login .svcc-auth .reset-pass-submit .button {
	float: none;
	inline-size: 100%;
	min-block-size: 0;
	block-size: 3rem;
	margin: 0;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--svcc-auth-blue);
	box-shadow: none;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 3rem;
	text-shadow: none;
}

.svcc-auth-login.login .svcc-auth .button-primary:hover {
	background: var(--svcc-auth-blue-deep);
}

/* Choose your password: Generate and Save side by side, as wide as the field; "Log in" stays under them. */
.svcc-auth-login .svcc-auth #login form p.reset-pass-submit {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 0.5rem;
}

.svcc-auth-login .svcc-auth #login form p.reset-pass-submit .button {
	flex: 1 1 9rem;
	inline-size: auto;
	min-inline-size: 0;
	margin: 0;
}

.svcc-auth-login.login .svcc-auth .reset-pass-submit .button:not(.button-primary) {
	border: 1px solid var(--svcc-auth-line);
	background: #fff;
	color: var(--svcc-auth-ink);
}

.svcc-auth-login.login .svcc-auth #nav {
	margin: 0;
	padding: 0;
	font-size: 0.88rem;
	text-align: center;
}

.svcc-auth-login.login .svcc-auth #nav a {
	color: var(--svcc-auth-blue);
}

.svcc-auth-login.login .svcc-auth #login_error,
.svcc-auth-login.login .svcc-auth .message,
.svcc-auth-login.login .svcc-auth .notice,
.svcc-auth-login.login .svcc-auth .success {
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid #dbe5fb;
	border-radius: 0.75rem;
	background: var(--svcc-auth-soft);
	box-shadow: none;
	color: var(--svcc-auth-ink);
	font-size: 0.88rem;
}

.svcc-auth-login.login .svcc-auth #login_error,
.svcc-auth-login.login .svcc-auth .notice-error {
	border-color: #f6c9c4;
	background: #fef3f2;
	color: #9b1c13;
}

.svcc-auth-login.login .svcc-auth .success,
.svcc-auth-login.login .svcc-auth .notice-success {
	border-color: #bbe8cc;
	background: #ecfdf3;
	color: #0b5e3a;
}

.svcc-auth-login.login .svcc-auth .description,
.svcc-auth-login.login .svcc-auth #reg_passmail,
.svcc-auth-login.login .svcc-auth .indicator-hint {
	color: var(--svcc-auth-muted);
	font-size: 0.8rem;
}

.svcc-auth-login.login .svcc-auth #pass-strength-result {
	margin: 0 0 1rem;
	border-radius: 0.6rem;
}

.svcc-auth-login .svcc-auth .language-switcher {
	margin: 0;
	padding: 0;
	text-align: center;
}

.svcc-auth-login .svcc-auth #language-switcher {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
}

.svcc-auth-login .svcc-auth #language-switcher select {
	min-block-size: 2.2rem;
	border-color: var(--svcc-auth-line);
	border-radius: 0.6rem;
	font-size: 0.8rem;
}

.svcc-auth-login .svcc-auth #language-switcher .button {
	min-block-size: 2.2rem;
	border-radius: 0.6rem;
}
