/* Softway login page + Google/Facebook buttons + demo accounts (plg_system_softwaysocial) */
.sw-auth {
	--sw-brand: #f0451f;
	--sw-brand-2: #ff7a45;
	--sw-ink: #1d2433;
	--sw-muted: #6b7280;
	--sw-line: #e5e7eb;
	--sw-field: #f7f8fa;
	--sw-radius: 14px;
	display: flex;
	max-width: 1040px;
	margin: 48px auto 64px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 60px -24px rgba(17, 24, 39, .25), 0 2px 6px rgba(17, 24, 39, .04);
	overflow: hidden;
	color: var(--sw-ink);
	font-size: 15px;
	line-height: 1.5;
}
.sw-auth *, .sw-auth *::before, .sw-auth *::after { box-sizing: border-box; }

/* Brand side */
.sw-auth__aside {
	position: relative;
	flex: 0 0 42%;
	padding: 48px 40px;
	color: #fff;
	background: linear-gradient(150deg, var(--sw-brand) 0%, var(--sw-brand-2) 100%);
	overflow: hidden;
}
.sw-auth__aside::before, .sw-auth__aside::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.sw-auth__aside::before { width: 320px; height: 320px; right: -120px; bottom: -120px; }
.sw-auth__aside::after { width: 180px; height: 180px; left: -70px; top: -70px; }
.sw-auth__aside > * { position: relative; z-index: 1; }
.sw-auth__aside h2 {
	margin: 0 0 28px;
	color: #fff;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
}
.sw-auth__perks { list-style: none; margin: 0 0 32px; padding: 0; }
.sw-auth__perks li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
	font-size: 15px;
}
.sw-auth__perks li::before {
	content: "\2713";
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	text-align: center;
	line-height: 24px;
	font-size: 13px;
	font-weight: 700;
}
.sw-auth__support { font-size: 14px; opacity: .92; }
.sw-auth__support a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Form side */
.sw-auth__main { flex: 1 1 auto; padding: 48px 56px; min-width: 0; }
.sw-auth__title { margin: 0 0 4px; font-size: 28px; font-weight: 700; color: var(--sw-ink); }
.sw-auth__subtitle { margin: 0 0 28px; color: var(--sw-muted); }
.sw-auth__desc { margin-bottom: 20px; color: var(--sw-muted); }

.sw-auth__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
	color: var(--sw-muted);
	font-size: 13px;
}
.sw-auth__divider::before, .sw-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--sw-line); }

.sw-auth__field { margin-bottom: 16px; }
.sw-auth__field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--sw-ink); }
.sw-auth__control { position: relative; }
.sw-auth input.sw-auth__input,
.sw-auth .sw-auth__control input[type="text"],
.sw-auth .sw-auth__control input[type="password"],
.sw-auth .sw-auth__control input[type="email"] {
	display: block;
	width: 100%;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--sw-line);
	border-radius: var(--sw-radius);
	background: var(--sw-field);
	color: var(--sw-ink);
	font-size: 15px;
	box-shadow: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.sw-auth .sw-auth__control input:focus {
	outline: none;
	border-color: var(--sw-brand);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(240, 69, 31, .12);
}
.sw-auth .sw-auth__control input.invalid { border-color: #dc2626; }
.sw-auth__control--password input { padding-right: 52px !important; }
.sw-auth__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--sw-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sw-auth__eye:hover, .sw-auth__eye:focus-visible { color: var(--sw-ink); background: #eef0f3; outline: none; }
.sw-auth__eye .sw-eye-off { display: none; }
.sw-auth__eye[aria-pressed="true"] .sw-eye-on { display: none; }
.sw-auth__eye[aria-pressed="true"] .sw-eye-off { display: block; }

.sw-auth__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 4px 0 20px;
	font-size: 14px;
}
.sw-auth__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; color: var(--sw-ink); }
.sw-auth__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--sw-brand); }
.sw-auth a.sw-auth__link, .sw-auth__links a { color: var(--sw-brand); font-weight: 600; text-decoration: none; }
.sw-auth a.sw-auth__link:hover, .sw-auth__links a:hover { text-decoration: underline; }

.sw-auth__tfa { margin: -4px 0 16px; font-size: 14px; }
.sw-auth__tfa summary { cursor: pointer; color: var(--sw-muted); list-style: none; }
.sw-auth__tfa summary::-webkit-details-marker { display: none; }
.sw-auth__tfa summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; transition: transform .15s; }
.sw-auth__tfa[open] summary::before { transform: rotate(90deg); }
.sw-auth__tfa .sw-auth__field { margin: 12px 0 0; }

.sw-auth .sw-auth__submit {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	border: 0;
	border-radius: var(--sw-radius);
	background: linear-gradient(135deg, var(--sw-brand), var(--sw-brand-2));
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(240, 69, 31, .65);
	transition: transform .12s, box-shadow .12s, filter .12s;
}
.sw-auth .sw-auth__submit:hover { filter: brightness(1.05); box-shadow: 0 14px 28px -12px rgba(240, 69, 31, .75); }
.sw-auth .sw-auth__submit:active { transform: translateY(1px); }
.sw-auth .sw-auth__submit[disabled] { opacity: .7; cursor: progress; }

.sw-auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; font-size: 14px; }
.sw-auth__footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--sw-line);
	text-align: center;
	color: var(--sw-muted);
	font-size: 14px;
}

/* Google / Facebook buttons */
.sw-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-social:has(> :only-child) { grid-template-columns: 1fr; }
.sw-social a.sw-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	padding: 0 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	color: #1d2433;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.sw-social a.sw-social__btn:hover, .sw-social a.sw-social__btn:focus-visible {
	border-color: #cfd4dc;
	background: #f9fafb;
	color: #1d2433;
	box-shadow: 0 6px 16px -10px rgba(17, 24, 39, .35);
	outline: none;
}
.sw-social a.sw-social__btn:active { transform: translateY(1px); }
.sw-social a.sw-social__btn--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.sw-social a.sw-social__btn--facebook:hover, .sw-social a.sw-social__btn--facebook:focus-visible { background: #166fe0; border-color: #166fe0; color: #fff; }
.sw-social__icon { flex: 0 0 20px; }
.sw-social--compact { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.sw-social.sw-social--compact a.sw-social__btn { height: 42px; font-size: 14px; }

/* Demo accounts (test site) */
.sw-demo {
	margin: 0 0 24px;
	padding: 14px;
	border: 1.5px dashed #f59e0b;
	border-radius: 16px;
	background: #fffbeb;
}
.sw-demo__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 10px; }
.sw-demo__head strong { font-size: 15px; color: #78350f; }
.sw-demo__head small { flex-basis: 100%; color: #92400e; font-size: 13px; }
.sw-demo__badge {
	padding: 1px 8px;
	border-radius: 999px;
	background: #f59e0b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
}
.sw-demo__list { display: grid; gap: 8px; }
.sw-demo a.sw-demo__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fff;
	color: #1d2433;
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s, transform .12s;
}
.sw-demo a.sw-demo__item:hover, .sw-demo a.sw-demo__item:focus-visible {
	border-color: #f59e0b;
	box-shadow: 0 6px 16px -10px rgba(146, 64, 14, .5);
	color: #1d2433;
	outline: none;
}
.sw-demo a.sw-demo__item:active { transform: translateY(1px); }
.sw-demo__avatar {
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f59e0b, #f0451f);
	color: #fff;
	font-weight: 700;
	line-height: 36px;
	text-align: center;
}
.sw-demo__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sw-demo__text b { font-size: 14px; }
.sw-demo__text em { font-style: normal; font-size: 12.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-demo__go { color: #b45309; font-size: 18px; }

/* Buttons placed in another page (registration) */
.sw-auth.sw-auth--inline {
	display: block;
	max-width: none;
	margin: 0 0 8px;
	background: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
.sw-auth--inline .sw-social { grid-template-columns: 1fr; gap: 10px; }
.sw-auth--inline .sw-auth__divider { margin: 20px 0 18px; }

/* Old decorative key icon of the template */
.login-wrapper > i.pe { display: none; }

@media (max-width: 900px) {
	.sw-auth { margin: 24px 16px 40px; }
	.sw-auth__aside { display: none; }
	.sw-auth__main { padding: 32px 24px; }
}
@media (max-width: 480px) {
	.sw-auth { margin: 16px 0 32px; border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .3); }
	.sw-auth__main { padding: 28px 18px; }
	.sw-auth__title { font-size: 24px; }
	.sw-social { grid-template-columns: 1fr; }
}
