html {
	min-height: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-weight: 400;
	color: var(--log_in_main_text_color);
	background: var(--log_in_bg_color_base);
	background: -moz-linear-gradient(top,
		var(--log_in_bg_color_base) 0%,
		var(--log_in_bg_color_gradient) 100%
	); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0%,var(--log_in_bg_color_base)), 
		color-stop(100%,var(--log_in_bg_color_gradient))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, 
		var(--log_in_bg_color_base) 0%,
		var(--log_in_bg_color_gradient) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, 
		var(--log_in_bg_color_base) 0%,
		var(--log_in_bg_color_gradient) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, 
		var(--log_in_bg_color_base) 0%,
		var(--log_in_bg_color_gradient) 100%); /* IE10+ */
	background: linear-gradient(to bottom, 
		var(--log_in_bg_color_base) 0%,
		var(--log_in_bg_color_gradient) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( 
		startColorstr='var(--log_in_bg_color_base)', 
		endColorstr='var(--log_in_bg_color_base)',GradientType=0 ); /* IE6-8 */
	background-repeat: no-repeat;
	background-attachment: fixed;
}

div, input, h1, span {
	font-family: Tahoma, Helvetica, sans-serif;
	font-size: 18px;
	font-style: normal;
}

.wf-active div, 
.wf-active input, 
.wf-active h1, 
.wf-active span {
	font-family: 'Lato';
}

#logo {
	background: var(--custom_logo_login);
    background-size: var(--custom_logo_size);
    width: 100%;
    height: 110px;
}

/** {
	border: 1px solid red;
}*/

h1 {
	font-style: normal;
	font-weight: 700;
	font-size: 20px;
	line-height: 20px;
	min-height: 20px;
	margin-top: 10px !important;
	padding-bottom: 10px;
	color: var(--log_in_text_color);;
	padding-top: 25px;
	text-align: center;
}

h1 span {
	font-size: 20px;
}

h1 a {
	text-decoration: none;
	color: inherit;
}

#login_box, #login_box_bg {
	height: 450px;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

.sso_box {
	text-align: center;
	padding: 5px;
	border-radius: 5px;
	display: inline-block;
	width: 350px;
	height: 40px;
	margin:5px;
	cursor: pointer;
	text-decoration: none; /* Ensure no default underlining for the link */
	color: #000; 
}

.sign_in_icon{
	margin-top: auto;
	margin-bottom: auto;
	margin-left: 5px;
	width: 35px;
	height: 35px;
}

#sign_in_label {
	font-size: 20px;
	font-weight: bold;
	margin-left: 10px;
	line-height: 64px;
	margin-bottom: 5px;
}

.line-with-text {
	width: 85%;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
	margin-bottom: 30px;
	display: flex;
	margin-left: auto;
	margin-right: auto;
}

.line-with-text hr {
	flex: 1;
	border: none;
	height: 1px;
	background-color: #ccc; 
}

.providers hr {
	flex: 1;
	border: none;
	height: 1px;
	background-color: #ccc;
}

.or-text {
	padding: 0 10px;
	margin-left: auto;
	margin-right: auto;
	color: #555;
}

i.icon.eye.slash:before { content: "\f070"; }

.providers {
	margin: auto;
	width: 95%;
}

.providers .btn-provider-login {
	background-color: #fff;
	border-color: #356195d9;
	border-radius: 10px;
	margin-top: 20px;
}

.providers .btn>span:first-child {
	background: white;
	padding: 7px;
	width: 38px;
	height: 38px;
	text-align: center;
}
.providers .btn>span:last-child {
	margin-left: 24px;
}

.providers .btn {
	font-weight: bold;
	text-decoration: none;
	display: flex;
	margin-bottom: 10px;
	width: 100%;
	border-radius: 20px;
	text-align: left;
	height: 40px;
	padding: 0;
	color: #686565;
}

.btn, .btn-raised, .btn-basic, .btn-stroked {
	border-radius: 20px;
	padding: 0 20px;
	min-width: 100px;
	height: 40px;
	font-size: 13px;
	line-height: 40px;
	text-align: center;
	border-width: 1px;
	border-style: solid;
	letter-spacing: 0.3px;
}

#login_password_field {
	display: block;
	width: 95%;
	margin-left: auto;
	margin-right: auto;
}

#login_box {
	padding: 20px;
	width: 360px;
}

#login_box_outer {
	margin-top:20px;
	background: var(--log_in_box_bg_color);
	background-image: linear-gradient(rgba(var(--log_in_box_bg_color), 0.23), rgba(var(--log_in_box_bg_color), 0));
	border-radius: 10px;
	height: 450px;
	z-index: -1;
	position: absolute;
	top: 113px;
	left: 0;
	right: 0;
	box-shadow: 0px 2px 12px 0px rgba(45,45,45,0.50);
}

#login_box_bg {
	position: absolute;
	width: 385px;
	height: 650px;
}

#login_username, #login_password, #login_code {
	cursor: pointer;
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	min-height: 22px;
}

#username, #password, #code {
	width: 100%;
	padding: 5px;
	background-color: #fff !important;
	-webkit-box-shadow: 0 0 0px 1000px #fff inset;
	border: 1px solid #BCBCBC;
	border-radius: 10px;
	outline: none; 
	min-height: 23px;
}

#code {
	letter-spacing: 10px;
	color: black;
	font-weight: bold;
	text-align: center;
}

#login_password {
	margin-top: 10px;
}

#login_code {
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

#username:focus, 
#password:focus {
	border: 1px solid gray;
	outline: none; 
}

#login_username_field, #login_code_field {
	margin: auto auto 20px auto;
	width: 95%;
}

#error {
	border-bottom: 1px solid #D0021B;
	color: #D0021B;
	background: #F7E6E8;
	font-weight: bolder;
	width: 100%;
	margin-bottom: 0px;
	text-align: center;
	z-index: 1000;
	position: absolute;
	top: 0;
	left: 0;
}

#error span {
	display: block;
	padding: 5px;
	font-size: 14px;
	font-weight: 700;
}

form {
	display: inline;
	margin: 0;
	padding: 0;
}

#login_button {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

#login_button_label {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 20px;
	background-color: #63aa07;
	color: white;
	text-align: center;
	cursor: pointer; 
}

#login_button_link {
	color: black;
	outline: none;
	text-decoration: none;
}

#login_button input {
	visibility: hidden;
	position: absolute;
	left: -999em;
}

i.lock {
	color: #F89D06;
}

#login_button_link .login_ok {
	color: #61B801;
}

#login_button_link:hover .login_ok {
	color: #519A02;
}

#go_back_box {
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
	width: 100px;
}

#buttons {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	margin-top: 20px;
	margin-bottom: 20px;
}

#back_button_label {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 20px;
	background-color: #aa1a07;
	color: white;
	text-align: center;
	cursor: pointer; 
}

#back_button_link {
	color: black;
	outline: none;
	text-decoration: none;
}

#back_button input {
	visibility: hidden;
	position: absolute;
	left: -999em;
}

#back_button_label:hover {
	color: #040405;
}

#login_button_label:hover {
	color: #040405;
}


#login_box_bg_sso {
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 10px;
	margin-top: 0px;
	max-width:350px;

}

#login_box_sso {
	position: relative;
	top: -130px;
}

#login_box_outer_sso {
	background: rgba(255, 255, 255, 0.23);
	background-image: linear-gradient(-180deg, #FFFFFF 0%, var(--log_in_box_bg_color) 100%);
	border-radius: 10px;
	height: 230px;
	z-index: -1;
	position: relative;
	top: 113px;
	left: 0;
	right: 0;
	margin-top: 20px;
	box-shadow: 0px 2px 12px 0px rgba(45,45,45,0.50); 
}



@media (max-width: 768px) {
    #login_box_bg_sso {
		max-width:350px;
		position: fixed;
		width: 100%;
		padding:20px;
		box-sizing: border-box;
    }
}

.sign_in_box {
	margin: 20px;
	display: flex;
	height: 20px;
	margin-top: 20px;
	background-color: #FFFFFF;
	border-radius: 40px;
	padding: 10px;
	box-shadow: 0px 2px 12px 0px rgba(45, 45, 45, 0.50);
	text-decoration: none;
	font-style: normal;

}

#sso_title {
	display: block;
	padding: 5px;
	font-size: 20px;
	color: var(--log_in_text_color);
	text-align: center;
	margin-top: 20px;
	margin-bottom: 10px;
	font-weight: 700;
}

#login_box_title {
	color: var(--log_in_text_color);
	background-color: #FFFFFF; 
	text-align: center;
	font-size: 18px;
	height: 40px;
	position: relative;
	margin: auto;
	text-align: center; 
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;

}

#sign_in_text  {
	margin-left: 30px;
	color : black;
	font-size: 15px;
}

/* ---------- v7: self-hosted Inter (variable font) ----------
   Same-origin file, satisfies this server's CSP (font-src 'self' data:) -
   no external font host involved. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/Inter-Variable.woff2') format('woff2');
}

/* ============================================================
   TOC PBXware - Modern Login Page Override (v2 - fixed)
   ============================================================ */
:root {
	--toc-accent: #2f6feb;
	--toc-accent-dark: #1d4ed8;
	--toc-card-bg: #ffffff;
	--toc-card-radius: 16px;
	--toc-input-radius: 10px;
}
div, input, h1, span, .wf-active div, .wf-active input, .wf-active h1, .wf-active span {
	font-family: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
	background: var(--log_in_bg_color_base) !important;
	background: linear-gradient(160deg, var(--log_in_bg_color_base) 0%, var(--log_in_bg_color_gradient) 100%) !important;
}

/* Restore the real TOC logo: switching Branding CSS to "Custom" stops loading
   branding_vars.css, so --custom_logo_login falls back to the stock Bicom mark.
   Point straight at the uploaded logo file instead of the variable.
   NOTE: if the login logo is re-uploaded via Simple Branding later, this
   path's version prefix or filename may change and need updating. */
#logo {
	background: url('/branding/v1784764119/login_logo.png') center bottom no-repeat !important;
	background-size: contain !important;
}

h1 { font-weight: 600; letter-spacing: -0.01em; }

/* Card look: only touch the decorative outer card, not the layout-critical
   height/position rules (#login_box / #login_box_bg / #login_box_outer heights
   are deliberately mismatched - 450/650/450px - to leave room for the logo
   above the card. Overriding those heights breaks that spacing.) */
#login_box_outer {
	border-radius: var(--toc-card-radius);
	box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.08);
	background: var(--toc-card-bg);
	background-image: none;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Inputs: cleaner, more modern focus state */
#username, #password, #code {
	border: 1px solid #D7DCE3;
	border-radius: var(--toc-input-radius);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#username:focus, #password:focus {
	border: 1px solid var(--toc-accent);
	box-shadow: 0 0 0 3px rgba(47, 111, 235, 0.15);
}

/* Button: flat modern pill, subtle hover lift instead of instant color swap. */
#login_button_label {
	background-color: var(--toc-accent);
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease, transform 0.1s ease;
}
#login_button_link:hover #login_button_label {
	background-color: var(--toc-accent-dark);
	transform: translateY(-1px);
}
#login_button_label:hover { color: #ffffff; }

#password_peek { color: #8A94A6; }
#error { border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(208, 2, 27, 0.15); }
.sso_box, .providers .btn { border-radius: 12px; }
.sign_in_box { border-radius: 999px; }
