/* BEINVISION login pages - colors and shapes from Documentation/charte (charte BEINVISION) */

/* Inter (SIL OFL, see fonts/Inter-OFL-LICENSE.txt), served by plugin_file.php from the same origin (CSP font-src self) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("plugin_file.php?file=BeinvisionTheme/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("plugin_file.php?file=BeinvisionTheme/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("plugin_file.php?file=BeinvisionTheme/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
	--bv-petrol: #183C47;
	--bv-petrol-2: #285A69;
	--bv-orange: #E8920D;
	--bv-orange-d: #CC6109;
	--bv-slate: #1E293B;
	--bv-slate-2: #64748B;
	--bv-bg: #F8FAFC;
	--bv-line: #E2E8F0;
	--bv-white: #FFFFFF;
	--bv-red: #C62828;
	--bv-font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hide the page until the script has rebuilt it, then hide the old layout */
body.login-layout { background: var(--bv-bg) !important; font-family: var(--bv-font); color: var(--bv-slate); }
body.login-layout.bv-login > .main-container,
body.login-layout.bv-login #btn-scroll-up { display: none !important; }

.bv-shell { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; }

/* Brand column */
.bv-brand {
	background: var(--bv-petrol);
	color: var(--bv-white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 48px;
	gap: 16px;
	border-right: 4px solid var(--bv-orange);
}
/* margin-top auto + the footer's margin-top auto center the logo block vertically */
.bv-logo-tile { background: var(--bv-white); border-radius: 10px; padding: 16px 24px; max-width: 360px; margin-top: auto; }
.bv-logo-tile img { display: block; width: 100%; height: auto; }
.bv-title { font-family: var(--bv-font); font-size: 22px; font-weight: 600; margin: 8px 0 0; color: var(--bv-white); }
.bv-subtitle { font-size: 15px; font-weight: 400; margin: 0; color: #CBD5E1; max-width: 420px; line-height: 1.5; }
.bv-powered { margin-top: auto; padding-top: 24px; font-size: 11px; color: #CBD5E1; }
.bv-brand .bv-powered { position: relative; top: 0; }
.bv-powered a { color: var(--bv-orange); font-weight: 600; text-decoration: none; }
.bv-powered a:hover { text-decoration: underline; }

/* Login column */
.bv-main { display: flex; align-items: center; justify-content: center; padding: 24px; }
.bv-card {
	width: 100%;
	max-width: 420px;
	background: var(--bv-white);
	border: 1px solid var(--bv-line);
	border-radius: 10px;
	padding: 24px;
}
.bv-card .widget-box, .bv-card .widget-body, .bv-card .widget-main {
	background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important;
	display: block !important; visibility: visible !important; opacity: 1 !important; transform: none !important; position: static !important;
}
.bv-card .widget-main h4.header {
	font-family: var(--bv-font); font-size: 22px; font-weight: 600; color: var(--bv-slate) !important;
	border: 0; margin: 0 0 16px; padding: 0;
}
.bv-card .widget-main h4.header .ace-icon { display: none; }
.bv-card .space-10, .bv-card .space-6, .bv-card .space-4 { height: 12px; max-height: 12px; }

/* Fields */
.bv-card input.form-control {
	height: 48px; border: 1px solid var(--bv-line) !important; border-radius: 8px !important;
	font-family: var(--bv-font); font-size: 15px; color: var(--bv-slate); padding: 0 40px 0 12px; box-shadow: none !important;
}
.bv-card input.form-control:focus { border-color: var(--bv-petrol-2) !important; }
.bv-card .input-icon > .ace-icon { line-height: 48px; color: var(--bv-slate-2); }
.bv-card label { font-size: 13px; color: var(--bv-slate-2); }

/* Buttons: no grey, 8px radius, 48px high */
.bv-card input[type=submit], .bv-card .btn-success {
	float: none !important; width: 100% !important; height: 48px; margin-top: 4px;
	background: var(--bv-white) !important; border: 1px solid var(--bv-petrol-2) !important; color: var(--bv-petrol-2) !important;
	border-radius: 8px !important; font-family: var(--bv-font); font-size: 15px; font-weight: 600; text-shadow: none;
}
.bv-card input[type=submit]:hover { background: var(--bv-bg) !important; }

.bv-btn-sso {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	height: 48px; width: 100%; border-radius: 8px;
	background: var(--bv-petrol-2); color: var(--bv-white) !important;
	font-family: var(--bv-font); font-size: 15px; font-weight: 600; text-decoration: none !important;
}
.bv-btn-sso:hover { background: var(--bv-petrol); }
.bv-ms-icon { width: 20px; height: 20px; background: var(--bv-white); border-radius: 2px; padding: 1px; }

.bv-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--bv-slate-2); font-size: 13px; }
.bv-divider::before, .bv-divider::after { content: ""; flex: 1; border-top: 1px solid var(--bv-line); }

/* Links and messages */
.bv-card a:not(.bv-btn-sso) { color: var(--bv-petrol-2); }
.bv-card .toolbar { background: transparent !important; border: 0 !important; padding: 12px 0 0 !important; }
.bv-card .alert { border-radius: 8px; }

/* Phone: one column, brand on top */
@media (max-width: 860px) {
	.bv-shell { grid-template-columns: 1fr; }
	.bv-brand { border-right: 0; border-bottom: 4px solid var(--bv-orange); padding: 24px 16px; }
	.bv-powered { margin-top: 0; padding-top: 0; }
	.bv-main { padding: 24px 16px; align-items: flex-start; }
}

/* Release line under "Powered by BEINVISION" (VERSION file, see CHANGELOG.md) */
.bv-brand .bv-version { margin: 0; font-size: 11px; color: #94A3B8; }
.bv-brand .bv-powered + .bv-version { margin-top: -12px; }

/* Client host: the customer's logo at the top of the login card */
.bv-card .bv-client { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--bv-line); }
.bv-card .bv-client img { display: block; max-height: 56px; max-width: 220px; width: auto; height: auto; }
