@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
	--st-bg: #edf1f5;
	--st-panel-a: #89112b;
	--st-panel-b: #5d0d1e;
	--st-panel-c: #3c0a14;
	--st-surface: #ffffff;
	--st-line: #c5cdd7;
	--st-line-strong: #97a3b2;
	--st-text: #14181f;
	--st-muted: #4b5563;
	--st-accent: #b31231;
	--st-accent-dark: #8e0f27;
	--st-focus: rgba(179, 18, 49, 0.2);
}

body[data-path="login"] .web-header,
body[data-path="login"] .navbar,
body[data-path="login"] .web-footer,
body[data-path="login"] .page-breadcrumbs,
body[data-path="login"] .frappe-branding,
body[data-path="login"] .powered-by {
	display: none !important;
}

body[data-path="login"] {
	margin: 0;
	background: var(--st-bg) !important;
	font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif !important;
	color: var(--st-text);
}

body[data-path="login"] .page-content-wrapper {
	min-height: 100vh;
	padding: 0 !important;
	margin: 0 !important;
}

.st-login-wrapper {
	display: grid;
	grid-template-columns: minmax(560px, 1fr) minmax(460px, 1fr);
	min-height: 100vh;
}

.st-login-wrapper *,
.st-login-wrapper *::before,
.st-login-wrapper *::after {
	border-radius: 0 !important;
}

.st-login-form-col {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 42px 34px;
	background:
		linear-gradient(135deg, rgba(14, 31, 53, 0.03) 25%, transparent 25%) 0 0 / 18px 18px,
		linear-gradient(315deg, rgba(14, 31, 53, 0.03) 25%, transparent 25%) 0 0 / 18px 18px,
		var(--st-bg);
	border-right: 1px solid #d6dde6;
}

.st-login-form-col .for-login,
.st-login-form-col .for-email-login,
.st-login-form-col .for-signup,
.st-login-form-col .for-forgot {
	max-width: 560px;
	width: 100%;
}

.st-brand-head {
	margin-bottom: 18px;
	padding: 0;
	text-align: left;
}

.st-brand-head .app-logo {
	height: 48px;
	width: auto;
	margin: 0 0 10px;
	display: block;
}

.st-brand-kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6b7280;
}

.st-login-form-col .page-card-head h4 {
	margin: 0;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--st-text);
}

.st-login-form-col .page-card {
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: 0;
	padding: 12px;
	box-shadow: 10px 10px 0 rgba(15, 23, 42, 0.07);
}

.st-login-form-col .page-card-body,
.st-login-form-col .page-card-actions,
.st-login-form-col .social-logins {
	padding-left: 8px;
	padding-right: 8px;
}

.st-login-form-col .page-card-body input[type="text"],
.st-login-form-col .page-card-body input[type="email"],
.st-login-form-col .page-card-body input[type="password"] {
	height: 52px !important;
	border: 1px solid var(--st-line-strong) !important;
	border-radius: 0 !important;
	background: #fff !important;
	padding-left: 44px !important;
	font-size: 15px !important;
	font-weight: 500;
	color: #111827 !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-login-form-col .page-card-body input:focus {
	border-color: var(--st-accent) !important;
	box-shadow: 0 0 0 3px var(--st-focus) !important;
}

.st-login-form-col .field-icon {
	left: 14px !important;
	fill: #667085 !important;
}

.st-login-form-col .toggle-password {
	top: 15px !important;
	right: 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #667085 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.st-login-form-col .toggle-password:hover {
	color: var(--st-accent) !important;
}

.st-login-form-col .forgot-password-message {
	margin: 0 0 10px !important;
	text-align: right;
}

.st-login-form-col .forgot-password-message a {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--st-muted) !important;
	text-decoration: none;
}

.st-login-form-col .forgot-password-message a:hover {
	color: var(--st-accent) !important;
}

.st-login-form-col .btn-login,
.st-login-form-col .btn-primary,
.st-login-form-col .btn-forgot {
	height: 52px !important;
	border-radius: 0 !important;
	border: 1px solid var(--st-accent-dark) !important;
	background: linear-gradient(90deg, var(--st-accent-dark), var(--st-accent)) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: none !important;
}

.st-login-form-col .btn-login:hover,
.st-login-form-col .btn-primary:hover,
.st-login-form-col .btn-forgot:hover {
	filter: brightness(1.05);
}

.st-login-form-col .btn-login-option,
.st-login-form-col .btn-default:not(.btn-login):not(.btn-primary) {
	height: 48px !important;
	border-radius: 0 !important;
	border: 1px solid var(--st-line-strong) !important;
	background: #f7f9fc !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #273244 !important;
}

.st-login-form-col .btn-login-option:hover,
.st-login-form-col .btn-default:not(.btn-login):not(.btn-primary):hover {
	background: #eef2f7 !important;
}

.st-login-form-col .login-divider {
	margin: 20px 0 !important;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b7280 !important;
}

.st-login-form-col .login-divider::before,
.st-login-form-col .login-divider::after {
	background: #c5cdd7;
}

.st-login-form-col .sign-up-message {
	margin-top: 16px !important;
	font-size: 13px !important;
	color: #4b5563 !important;
}

.st-login-form-col .sign-up-message a {
	color: var(--st-accent) !important;
	font-weight: 700 !important;
	text-decoration: none;
}

.st-login-panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 48px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--st-panel-a) 0%, var(--st-panel-b) 55%, var(--st-panel-c) 100%);
}

.st-login-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
		linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 42px 42px;
	mix-blend-mode: screen;
	opacity: 0.28;
}

.st-panel-content {
	position: relative;
	z-index: 1;
	max-width: 520px;
	text-align: left;
	color: #fff;
}

.st-panel-icon {
	width: 110px;
	height: 110px;
	margin: 0 0 20px;
	display: grid;
	place-items: center;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.st-panel-icon svg {
	width: 44px;
	height: 44px;
	color: #fff;
}

.st-panel-logo {
	height: 30px;
	margin: 0 0 18px;
	display: block;
	filter: brightness(0) invert(1);
}

.st-panel-content h2 {
	margin: 0 0 10px;
	font-size: clamp(34px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.st-panel-content p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
}

.st-float-bar {
	position: absolute;
	width: 3px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.3);
}

.st-float-bar:nth-child(1) {
	height: 72px;
	top: 18%;
	left: 10%;
}

.st-float-bar:nth-child(2) {
	height: 94px;
	bottom: 14%;
	left: 28%;
}

.st-float-bar:nth-child(3) {
	height: 56px;
	top: 58%;
	right: 11%;
}

@media (max-width: 1150px) {
	.st-login-wrapper {
		grid-template-columns: 1fr;
	}

	.st-login-panel {
		display: none;
	}

	.st-login-form-col {
		padding: 30px 16px;
		border-right: 0;
	}
}

@media (max-width: 720px) {
	.st-login-form-col .page-card {
		box-shadow: none;
	}

	.st-brand-head {
		text-align: center;
	}
}

[dir="rtl"] .st-brand-head,
[dir="rtl"] .st-panel-content {
	text-align: right;
}

[dir="rtl"] .st-login-form-col .page-card-body input[type="text"],
[dir="rtl"] .st-login-form-col .page-card-body input[type="email"],
[dir="rtl"] .st-login-form-col .page-card-body input[type="password"] {
	padding-left: 14px !important;
	padding-right: 44px !important;
}

[dir="rtl"] .st-login-form-col .field-icon {
	left: auto !important;
	right: 14px !important;
}

[dir="rtl"] .st-login-form-col .toggle-password {
	right: auto !important;
	left: 12px !important;
}