/*  
CHANGELOG
When        Who     JIRA        What
Autumn-2017 acruz   TLM-10241   PXM Phase 1: CSS Facelift
26-Sep-2018 rporras PXMUX-292   CSS Toggle - Login
16-Oct-2016	rsanchez MRG-85		Merge: Implement/Fix TLM User Password Recovery
16-Oct-2018 acruz   MRG-85      Style Reload Captcha font-awesome icon
16-Oct-2018 acruz   MRG-85      Reload Captcha icon rotating animation
17-Oct-2018 acruz   MRG-85      IE text cursor fix for Reload Captcha icon 
07-Dec-2018 acruz   PXMUX-342   Remove blur effect from CSS and appy to image
09-May-2019 acruz   PXMUX-499   New Commodity Foods Login Design and Artwork
*/

/*****************************************************
ALL CHANGES LOCALIZED TO LOGIN PAGE (UNFORTUNATELY...)
 ****************************************************/
@import url('fontfaces.css');
div#login-fields {border-spacing: 0;}

html {
    /*In Bootstrap 4, the default html font-size is set to 16px, which is the browser default.
    This means that 1rem = 16px by default.
    This will make 1rem = 10px, similar to how it was in Bootstrap 3.
    TODO: However, this approach can lead to other inconsistencies, so it's better to update the design to use the default 16px base.
    */
    font-size: 62.5%; /* 10px = 62.5% of 16px */
}

#bg-blurlayer {
    position: fixed; /* Sit on top of the page content */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../admin/images/bg-images/bg_commodship.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -50; /* Specify a stack order in case you're using a different order for other elements */
    background-position-x: center;
    background-position-y: bottom;
}
  
body {
/*  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  background-size:cover;
  background-repeat: no-repeat;*/
   /*In Bootstrap 4 font size issue. Force fonts styles*/
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
   font-size: 1.5rem !important;
   line-height: 1.42857143 !important;
   color: #333 !important;
   background-color: #fff !important;
}

/* BOTTOM BARS LOGIN AND PWD ========================= */
.bar  { position:relative; display:block; width:100%; }
.bar:before, .bar:after   {
    content:'';
    height:2.275px; 
    width:0;
    bottom:0; 
    position:absolute;
    background:#1dafec; 
    transition:0.2s ease all; 
    -moz-transition:0.2s ease all; 
    -webkit-transition:0.2s ease all;
}
.bar:before {
    left:50%;
}
.bar:after {
    right:50%; 
}

/* active state */
input:focus ~ .bar:before, input:focus ~ .bar:after {
    width:50%;
}

.exim-logo {
    width: 75%;
    display: inline-block;
    position: relative;
    left: -34.5%;
    padding: 12px 0;
}

.commodity_image {
    display: inline-block;
    box-sizing: border-box;
    width: 19.1%;
    margin: 1px 0 0 0;
    vertical-align: top;
    text-align: center;}

.commodity_image label {
/*  border-bottom: 1px solid rgba(29, 175, 236, 0.3);*/
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 10px 60px 10px;
    cursor: pointer;
    opacity: 1;
/*  -webkit-transition: all .099s ease-in-out;
  transition: all .009s ease-in-out;*/
}

.commodity_image label[for=select_commodity_coffee],
.commodity_image label[for=select_commodity_cocoa],
.commodity_image label[for=select_commodity_tea],
.commodity_image label[for=select_commodity_metals],
.commodity_image label[for=select_commodity_food] {
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: top;
    background-size: 75% 75%;
    border-bottom: 0.1em solid #2553a6;
    opacity: .5;
}

.commodity_image > input[type="radio"] {
    display: none;
}

.commodity_image:hover {border-color: #dcdcdc; background-color: #556db5;}

.commodity_image label[for=select_commodity_coffee] {
    background-image: url("../admin/eximware/commsel_coffee.svg");}
.commodity_image label[for=select_commodity_cocoa] {
    background-image: url("../admin/eximware/commsel_cocoa.svg");}
.commodity_image label[for=select_commodity_tea] {
    background-image: url("../admin/eximware/commsel_tea.svg");}
.commodity_image label[for=select_commodity_metals] {
    background-image: url("../admin/eximware/commsel_metal.svg");}
.commodity_image label[for=select_commodity_food] {
    background-image: url("../admin/eximware/commsel_food.svg");}

/* Adding and styling the labels,
	eventually should embed the SVG so label text is visible */
label[for=select_commodity_coffee]::after { content: "COFFEE"; }
label[for=select_commodity_cocoa]::after { content: "COCOA"; }
label[for=select_commodity_tea]::after { content: "TEA"; }
label[for=select_commodity_metals]::after { content: "METAL"; } 
label[for=select_commodity_food]::after { content: "FOOD"; } 

label[for=select_commodity_coffee]::after,
label[for=select_commodity_cocoa]::after,
label[for=select_commodity_tea]::after,
label[for=select_commodity_metals]::after,
label[for=select_commodity_food]::after
 {
	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif ;
    font-weight: 300;
	font-size: 0.75em;
	color: #cbcbcb;
	z-index: 1000;
	position: relative;
	top: 57px;
    }

.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_coffee]::after,
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_cocoa]::after,
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_tea]::after,
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_metals]::after,
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_food]::after
 {
    color: white;
}


.commodity_image label object {
    display: inline-block;
}

/* Input style */
.commodity_image input[type="radio"] {
    opacity: 0;
    width: 0px;
    height: 0px;
}

.commodity_image  input[type="radio"]:checked ~ label {
    opacity: 1;
    border-bottom: 0.15em solid #ffffff;
    outline: none;
}

.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_coffee] { 
    background-image: url("../admin/eximware/commsel_coffee_checked.svg");}
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_cocoa] { 
    background-image: url("../admin/eximware/commsel_cocoa_checked.svg");}
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_tea] { 
    background-image: url("../admin/eximware/commsel_tea_checked.svg");}
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_metals] { 
    background-image: url("../admin/eximware/commsel_metal_checked.svg");}
.commodity_image  input[type="radio"]:checked ~ label[for=select_commodity_food] { 
    background-image: url("../admin/eximware/commsel_food_checked.svg");}
.extralinks-holder { 
    -webkit-padding-start: 0px; padding-top: 20px;
    list-style-type: none; text-align: center; text-transform: uppercase;}
.extralinks-holder li { display: inline; padding: 0 5px; cursor: pointer;}
.extralinks-holder li:first-child:after {content: "|"; position: relative; left: 6px; color: #778899}
.extralinks {
    font-family: 'Ubuntu';
    font-weight: 300;
    letter-spacing: 0.075rem;
    font-size: 1.4rem;
    color: #898989;
}
.extralinks-forgot-pass li:first-child:after {content:none;}
.extralinks:hover { color: #1dafec; text-decoration: none;}
td:not(#logo-column) { padding: 0 !important; }

/* Materialized login button */
input[type="submit"] {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;

    text-decoration: none;
    color: #fff;
    background-color: #1dafec;
    text-align: center;
    letter-spacing: 0.21rem;
    -webkit-transition: .2s ease-out;
    transition: .2s ease-out;
    cursor: pointer;
    margin-top: 0;

    font-size: 1.75rem;
    outline: 0;
    font-family:'Ubuntu';
    font-weight: 300;

    border: none;
    border-radius: 0;
    display: inline-block;
    /*height: 4em;
    width: 100%;*/
    line-height: 4.4rem;
    padding: 0 3.8rem;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    width: 100%; }

input[type="submit"]:hover {
    opacity: .85;
}

input[type="submit"]:active,
input[type="submit"]:focus {
    transition: all 150ms linear;
    opacity: .85;
    outline: 1px dotted #959595;
    outline-offset: -4px;
}

input[type="submit"]:disabled {
    font-weight: 300;
    color: #cbcbcb;
}


/* Style the username and password boxes */
input.forms[name="login_userid"],input.forms[name="login_pwd"],
input.forms[name="userid"],input.forms[name="email"], input.forms[name="captcha"] {
    border: none;
    border-bottom: 0.15em solid #898989;
    padding: 5% 5% 5% 0%;
    margin: 0;
    outline: none;
    letter-spacing: 0.11rem;
    width: 100%;
    text-indent: 10%;
    font-size: 1.5rem;
    font-family: 'Ubuntu';
}

/*
    For all modern browsers
*/
input.forms[name="login_userid"]::placeholder,
input.forms[name="login_pwd"]::placeholder,
input.forms[name="userid"]::placeholder,
input.forms[name="email"]::placeholder,
input.forms[name="captcha"]::placeholder {
    text-transform: uppercase;
    color: #cbcbcb;
    letter-spacing: 0.075em;
}

input.forms[name="login_userid"]:hover::placeholder,
input.forms[name="login_pwd"]:hover::placeholder,
input.forms[name="userid"]:hover::placeholder,
input.forms[name="email"]:hover::placeholder,
input.forms[name="captcha"]:hover::placeholder,
input.forms[name="login_userid"]:focus::placeholder,
input.forms[name="login_pwd"]:focus::placeholder,
input.forms[name="userid"]:focus::placeholder,
input.forms[name="email"]:focus::placeholder,
input.forms[name="captcha"]:focus::placeholder {
    color: #888888;
}


/*
    For Blink and Chrome browsers
*/
input.forms[name="login_userid"]::-webkit-input-placeholder,
input.forms[name="login_pwd"]::-webkit-input-placeholder,
input.forms[name="userid"]::-webkit-input-placeholder,
input.forms[name="email"]::-webkit-input-placeholder,
input.forms[name="captcha"]::-webkit-input-placeholder { 
    text-transform: uppercase;
    color: #cbcbcb;
    letter-spacing: 0.075em;}

input.forms[name="login_userid"]:hover::-webkit-input-placeholder,
input.forms[name="login_pwd"]:hover::-webkit-input-placeholder,
input.forms[name="userid"]:hover::-webkit-input-placeholder,
input.forms[name="email"]:hover::-webkit-input-placeholder,
input.forms[name="captcha"]:hover::-webkit-input-placeholder,
input.forms[name="login_userid"]:focus::-webkit-input-placeholder,
input.forms[name="login_pwd"]:focus::-webkit-input-placeholder,
input.forms[name="userid"]:focus::-webkit-input-placeholder,
input.forms[name="email"]:focus::-webkit-input-placeholder,
input.forms[name="captcha"]:focus::-webkit-input-placeholder {
    color: #888888; 
}

/*
 For some older versions of Firefox
*/
input.forms[name="login_userid"]:-moz-placeholder,
input.forms[name="login_userid"]::-moz-placeholder,
input.forms[name="login_pwd"]:-moz-placeholder,
input.forms[name="login_pwd"]::-moz-placeholder,
input.forms[name="userid"]:-moz-placeholder,
input.forms[name="userid"]::-moz-placeholder,
input.forms[name="email"]:-moz-placeholder,
input.forms[name="email"]::-moz-placeholder,
input.forms[name="captcha"]:-moz-placeholder,
input.forms[name="captcha"]::-moz-placeholder {
    text-transform: uppercase;
    color: #cbcbcb;
    letter-spacing: 0.075em;
}

input.forms[name="login_userid"]:hover:-moz-placeholder,
input.forms[name="login_userid"]:hover::-moz-placeholder,
input.forms[name="login_pwd"]:hover:-moz-placeholder,
input.forms[name="login_pwd"]:hover::-moz-placeholder,
input.forms[name="userid"]:hover:-moz-placeholder,
input.forms[name="userid"]:hover::-moz-placeholder,
input.forms[name="email"]:hover:-moz-placeholder,
input.forms[name="email"]:hover::-moz-placeholder,
input.forms[name="captcha"]:hover:-moz-placeholder,
input.forms[name="captcha"]:hover::-moz-placeholder,
input.forms[name="login_userid"]:focus:-moz-placeholder,
input.forms[name="login_userid"]:focus::-moz-placeholder,
input.forms[name="login_pwd"]:focus:-moz-placeholder,
input.forms[name="login_pwd"]:focus::-moz-placeholder,
input.forms[name="userid"]:focus:-moz-placeholder,
input.forms[name="userid"]:focus::-moz-placeholder,
input.forms[name="email"]:focus:-moz-placeholder,
input.forms[name="email"]:focus::-moz-placeholder,
input.forms[name="captcha"]:focus:-moz-placeholder,
input.forms[name="captcha"]:focus::-moz-placeholder {
    color: #888888;
}

/*
 For IE use -ms-input-placeholder and !important.
*/
input.forms[name="login_userid"]:-ms-input-placeholder,
input.forms[name="login_pwd"]:-ms-input-placeholder,
input.forms[name="userid"]:-ms-input-placeholder,
input.forms[name="email"]:-ms-input-placeholder,
input.forms[name="captcha"]:-ms-input-placeholder {
    text-transform: uppercase !important;
    color: #cbcbcb !important;
    letter-spacing: 0.075em !important;
}

input.forms[name="login_userid"]:hover:-ms-input-placeholder,
input.forms[name="login_pwd"]:hover:-ms-input-placeholder,
input.forms[name="userid"]:hover:-ms-input-placeholder,
input.forms[name="email"]:hover:-ms-input-placeholder,
input.forms[name="captcha"]:hover:-ms-input-placeholder,
input.forms[name="login_userid"]:focus:-ms-input-placeholder,
input.forms[name="login_pwd"]:focus:-ms-input-placeholder,
input.forms[name="userid"]:focus:-ms-input-placeholder,
input.forms[name="email"]:focus:-ms-input-placeholder,
input.forms[name="captcha"]:focus:-ms-input-placeholder {
    color: #888888 !important;
}


.login-fields label { display: none; }

#svg_logo {
    display: inline-block;
    width: 150%; }

#login-form-table {
    width:  352px;
    position: fixed;
    top: 48%;
    left: 50%;
    border-radius: 0.4em;
    box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
    background-color: #eeeeee;
    transform: translate(-50%, -50%) }

table {border:0px; border-collapse:collapse; border-spacing:0px; }

#top-login-table tbody tr td {
    vertical-align: middle;
}

.botton-text { 
font-family: 'Roboto'; 
text-align: center; 
font-size: 1.25rem; 
color: #778899; 
font-weight: 300; 
opacity: 0.75; 
letter-spacing: 0.09rem;}

.control-colum { text-align: center; padding-bottom: 0.5em !important;}
.control-colum span {font-size: 1.6rem;}

/* Style the commodity radio buttons */
#login-form-table tr.commodity {
    background-color: #2553a6;
}

#login-form-table tbody tr td#logo-column {
    padding-left:37%;
    vertical-align: top;
}

#login-form-table > tbody:first-child > tr:first-child {
    border-bottom: 0.15em solid #898989;
}

#commodity-selector-header, #theme-selector-header, #captcha-selector-header { 
    text-align: center;
    /*text-align: left; *//*These should be added back once theme selector removed*/
    /*text-indent: 9.5%; */
    font-family: "Roboto";
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.075em;
    border-top: 10px solid #2553a6;
    -webkit-appearance: none;
    border-bottom: 2px solid #556db5;
}
#commodity-selector-header.control-colum, #captcha-selector-header.control-colum {padding-bottom: 7px !important;}
#theme-selector-header.control-colum {
    border-top: none;
    padding-top:7px!important;
    padding-bottom: 7px !important;
    border-color: #a8bee9;}

/***********************
 THEME SELECTOR SECTION
 ***********************/
#theme-selector-header,
#theme-selector-column{
	font-weight:400;
	color: #244588;	
	background-color: #96b2e4;
}
#theme-selector-column li {
    width: 50%;
    text-align:center;
    background-color: #96b2e4;
    text-transform: uppercase;
    border-bottom: 3px solid #96b2e4;
}
#theme-selector-column a { border: none; color: #556db5;font-family:"Roboto";letter-spacing:.03em;}
#theme-selector-column li:hover {border-color: #bacbed;}
#theme-selector-column li:hover, #theme-selector-column li a:hover {
    background-color: #bacbed;
    border-color: #bacbed;
    cursor:pointer;
}
#theme-selector-column li a:focus  {background-color: #96b2e4;}
#theme-selector-column li.active, #theme-selector-column li.active a{
    background-color: #96b2e4;
    color: #244588;
}
#theme-selector-column li.active {
    border-color: #2553a6;
}
#theme-selector-column li.active a {}

/***************************
 FORGOT PASSWORD EXCLUSIVES
 ***************************/
#captcha-body img {width:100%;  position: relative;top: 0;left: 0;}
#captcha-input-validation {border-top:2px solid #7c8180;}

.parent { 
  position: relative;
  top: 0;
  left: 0;
}

.fa-captcha {
	font-size: 1.8rem;
	color: #2553A6;
    cursor: pointer;
    vertical-align: middle;
    transition: transform .25s ease-in-out;
}

.fa-captcha:hover {
    color: #1DAFEC;
    transform: rotate(180deg);
    transition: transform .25s ease-in-out;
}

.fa-captcha-overlay {
	position: absolute;
	top: 0;
	right: 0;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    border-left: 2px solid #7C8180;
    border-bottom:  2px solid #7C8180;
    border-radius: 0 0 0 2px;
    background-color: #ffffff;
}

.fa-captcha-overlay:hover {background-color:#efefef;}
.fa-captcha-overlay:active {background-color: #dedede;}

/***************************
 HIDING UNNECESSARY ELEMENTS 
 ***************************/
#login-form-table tbody tr td[valign="top"][rowspan="2"],
#login-form-table tbody tr td[height~="30"],
#login-form-table tbody tr td[height~="42"],
#login-form-table tbody tr td[height~="6"],
#login-form-table tbody tr td[width~="156"],
td[colspan~="4"][height~="30"] { display: none;}
.bodymsg {  font-family: "Roboto", Helvetica, sans-serif; font-size: 1em; font-weight: normal; color: #FF6961/* Pastel red */;}
.centered-text { text-align: center;}

input.forms:not([type="button"]), textarea {
	border-radius: 0px !important;
}

.alert-login-pxm {
	margin-bottom: 0px !important;
}

.input_button {
    background: #ffffff;
    overflow: hidden;

	margin: 10px;
    padding: 15px 20px;

    cursor: pointer;
    user-select: none;
    transition: all 150ms linear;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;

    color: #1dafec;
    border: 1px solid #1dafec;
    border-radius: 4px;

    font-family: 'Source Sans Pro', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 0.3;
    letter-spacing: 0.05em;

    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;

    justify-content: center;
    align-items: center;
    flex: 0 0 160px;

    box-shadow: 2px 5px 10px var(--color-smoke);}

div.login-fields > i.fas.fa-eye,
div.login-fields > i.fas.fa-eye-slash {
    font-size: 1.8rem;
    float: right;
    margin-right: 0.5em;
    margin-left: -25px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

div.login-fields > i.fas.fa-eye-slash {
    color: #cbcbcb;
}

div.login-fields > i.fas.fa-eye-slash:hover,
div.login-fields > i.fas.fa-eye {
    color: #888888;
}

/* For Safari Key icon*/
input.forms[name="login_pwd"]::-webkit-contacts-auto-fill-button,
input.forms[name="login_pwd"]::-webkit-credentials-auto-fill-button {
    margin-right: 20px;
}

/* For IE 'X' icon (clear input)*/
input.forms[name="login_pwd"]::-ms-reveal,
input.forms[name="login_pwd"]::-ms-clear {
    display: none !important;
}