/**********************************************************************
 * Global CSS file for the login page                                 *
 * The login page is a merge of the "new" landing page,               *
 * the optout page and it's completely enabled for resizable games    *
 **********************************************************************/

/*******************
 *   MAIN LAYOUT   *
 *******************/

/** Backgrounds **/
body, html{
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	height: 100%;
}

body{
	background-position: center top;
	background-repeat: no-repeat;
}

/* Checkboxes generic layout */
div.checkbox-wrapper > *{
	display: inline-block;
	vertical-align: middle;
}

div.checkbox-wrapper > input[type="checkbox"]{
	margin-right: 4px;
}

/** Header **/

header{
	width: 100%;
	margin-top: 11px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
	padding: 0px 0px 0px 0px;
	text-align: center;
}

/** Header default gradient **/

header{
	background-color: #4ac1f8;
	background: -webkit-linear-gradient(to right, #1d80ae, #36afe7, #1d80ae);
	background: -moz-linear-gradient(to right, #1d80ae, #36afe7, #1d80ae);
	background: -o-linear-gradient(to right, #1d80ae, #36afe7, #1d80ae);
	background: linear-gradient(to right, #1d80ae, #36afe7, #1d80ae);
}

header > *, header > form > *{
	display: inline-block;
	vertical-align: middle;
	margin-top: 8px;
	margin-bottom: 8px;
}

header > form > * {
	margin-right:13px;
}

header > *:first-child{
	margin-right: 12px;
}

main{
	display: block;
	width: 600px;
	margin: 35px auto 10px auto;
	padding: 13px 20px 10px 20px;
	border-radius: 10px;
	/* background-color: rgba(74, 193, 248, 0.3); */ /** For testing only **/
}

main > form{
	margin: 7px auto 20px auto;
	width: 550px;
	border-radius: 7px;
	border: 3px outset #fc9605;
	box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.7);
	background-color: #fc9605;
	background: linear-gradient(to bottom, #ef8e05, #d57e04);
	padding: 10px 15px 15px 15px;
	text-align: center;
}


/*******************
 *    LOGIN BAR    *
 *******************/

/** The facebook button **/
header > form > #fb-login{
	background-image: url("/assets/img/application/login/fb_login_mid.png");
	width: 125px;
	height: 26px;
	padding: 6px 4px 2px 26px;
	color: #dddddd;
	font-weight: bold;
	font-size: 15px;
	margin-top: 6px;
}

header > form > #fb-login:hover{
	color: #ffffff;
	text-decoration: none;
}

/** The login text fields **/
header > form > input[type="text"],
header > form > input[type="password"]{
	width: 110px;
	height: 19px;
	border-radius: 6px;
	border: 2px solid #969080;
	font-size:16px;
	padding:8px;
}

header > form > input.button{
	width: 130px;
	height: 32px;
	border-radius: 7px;
	background: linear-gradient(to bottom, #00e81b, #056600 );
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
	font-size: 16px;
	text-transform: uppercase;
	color: #e5e5e5;
	font-weight: bold;
	text-align: center;
	margin-top: 6px;
	cursor: pointer;
}

header > form > input.button:hover{
	background: linear-gradient(to top, #056600, #59ff6c );
	text-decoration: none;
	cursor: pointer;
}


header > form > div.checkbox-wrapper > input[type="checkbox"]{
	appearance: none;
	display: inline-block;
	width: 20px;
	height: 20px;
}

header > form > div.checkbox-wrapper > label{
	font-size: 14px;
	color: #20364d;
	font-weight: bold;
}

header > form > #password-forgotten-field{
	font-size: 14px;
	text-decoration: none;	
	color: #20364d;
	font-weight: bold;
}

header > form > #password-forgotten-field:hover{
	text-decoration: none;
	color: #19428b; 

}

/*******************
 *    MAIN BLOCK   *
 *******************/

/** Game logo default position **/
main > form > img{
	display: block;
	margin: 20px auto 40px auto;
}

/** Game logo text placeholder **/
main > form > h1{
	margin: 20px auto 20px auto;
	font-size: 72px;
	text-decoration: none;
	font-weight: bold;
	font-family: 'Open Sans';
	color: rgb(44, 46, 65);
	text-shadow: 0 0 20px rgb(250, 250, 139), 0 0 10px rgb(233, 243, 123);
}

main > form > p {
	margin-top: 0px;
	margin-bottom: 13px;
	text-indent: 0;
}

main > form > *{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

main > form > label {
	display: none;
	font-size: 16px;
	color: #20364d;
	font-weight: bold;
	text-align: center;
	margin-bottom: 4px;
}

main > form > input[type="text"],
main > form > input[type="email"],
main > form > input[type="password"]{
	width: 300px;
	height: 30px;
	border-radius: 6px;
	border: 2px solid #969080;
	font-size:22px;
	padding: 10px;
	margin-bottom: 13px;
}

main > form > input:nth-of-type(4){
	margin-bottom: 20px;
}

main > form > div.checkbox-wrapper {
	margin-bottom: 7px;	
}

main > form > div.checkbox-wrapper > label > a{
	color: rgb(29, 68, 117);
}

main > form > div.checkbox-wrapper > label > a:hover{
	color: rgb(42, 95, 162);
	text-decoration: none;
}

main > form > div.checkbox-wrapper:last-of-type {
	margin-bottom: 13px;	
}

main > form > div.checkbox-wrapper > input[type="checkbox"]{
	appearance: none;
	display: inline-block;
	width: 24px;
	height: 24px;

}

main > form > div.checkbox-wrapper > label{
	display: inline-block;
	font-size: 15px;
	color: #20364d;
	font-weight: bold;
}

/** Buttons Layout **/

main > form > #reg_submit,
main > form > #sp_or,
main > form > #fbreg{
	display: inline-block;
	vertical-align: middle;
	text-align: center;
}

main > form > #sp_or{
	font-size: 15px;
	color: #20364d;
	font-weight: bold;
	margin: 0 5px 0 5px;
}

/** Buttons styles **/
main > form > a.button,
main > form > input.button{
	width: 194px;
	height: 48px;
	line-height: 40px;
	border-radius: 7px;
	background: -webkit-linear-gradient(to bottom, #00e81b, #056600 );
	background: -moz-linear-gradient(to bottom, #00e81b, #056600 );
	background: -o-linear-gradient(to bottom, #00e81b, #056600 );
	background: -ms-linear-gradient(to bottom, #00e81b, #056600 );
	background: linear-gradient(to bottom, #00e81b, #056600 );
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
	font-size: 16px;
	text-transform: uppercase;
	color: #e5e5e5;
	font-weight: bold;
	margin: 12px 14px 12px 14px;
}

main > form > a.button{
	width: 180px;
	height: 40px;
	padding: 4px 7px 4px 7px;
}



main > form > input.button:hover,
main > form > a.button:hover{
	background: linear-gradient(to top, #056600, #59ff6c );
	text-decoration: none;
	cursor: pointer;
}


/** F***ing facebook button must be wider **/
main > form > #fbreg{
	background: url("/assets/img/application/login/fb_login_big.png") left center no-repeat;
	box-shadow: none;
	border-radius:0px;
	width: 146px;
	height: 28px;
	padding: 20px 10px 8px 52px; 
	color: #dddddd;
	font-size: 15px;
	line-height: 15px;
}



main > form > #fbreg:hover{
	color: #ffffff;
	text-decoration: none;
}

/** And must be written on two rows for most locales... **/

main.lang-fr > form > #fbreg,
main.lang-es > form > #fbreg,
main.lang-it > form > #fbreg,
main.lang-pl > form > #fbreg,
main.lang-pt > form > #fbreg,
main.lang-ru > form > #fbreg,
main.lang-en > form > #fbreg{
	font-size: 14px;
	line-height: 16px;
	padding-top: 13px;
	height: 35px;

}


main.lang-it > form > a.button{
	margin-left: 10px;
	margin-right: 10px;	
}

main > form > #rg_trynow{
	margin: 14px auto 20px auto;
}

/*******************
 *      FOOTER     *
 *******************/

footer{
	width: 100%;
	box-shadow: 0 0px 6px 4px rgba(0, 0, 0, 0.5);
	padding: 13px 0px 12px 0px;
	text-align: center;
	font-size: 17px;
	font-weight: normal;
}

/** Footer Default Background **/
footer{
	background-color: rgba(45, 77, 108, 0.95);
	background: -webkit-linear-gradient(to right, rgba(32, 55, 77, 0.95), rgba(45, 77, 108, 0.95), rgba(32, 55, 77, 0.95));
	background: -moz-linear-gradient(to right, rgba(32, 55, 77, 0.95), rgba(45, 77, 108, 0.95), rgba(32, 55, 77, 0.95));
	background: -o-linear-gradient(to right, rgba(32, 55, 77, 0.95), rgba(45, 77, 108, 0.95), rgba(32, 55, 77, 0.95));
	background: linear-gradient(to right, rgba(32, 55, 77, 0.95), rgba(45, 77, 108, 0.95), rgba(32, 55, 77, 0.95));
}

/** Footer links **/

footer > ul{
	list-style-type: disc;
	list-style-position: inside;
	margin-bottom: 0;
}

footer > ul > li {
	display: inline;
}

/* A little separator never killed anybody*/
footer > ul > li{
	border-left: 2px solid #ededed;
	padding: 0px 13px 0px 15px;
	margin: 0;
}


footer > ul > li:first-child{
	border: none;
}

footer > ul > li > a{
	color: #ffffff;
}


footer > ul > li > a:hover{
	color: #dedede;
	text-decoration: none;
}

footer > li > a{
	text-transform: lowercase;
	text-transform: capitalize;
}

/***************************************
 *  The catch-phrase (Free to Play !)  *
 ***************************************/

#cp_wrapper{
	position: absolute;
	left: 0px;
	bottom: 0px;

	width: 330px;
	height: 330px;

	overflow: hidden;
	pointer-events: none;
}

#catchphrase{
	position: absolute;
	left: 0px;
	bottom: 0px;

	background-color: #d64b4b;
	background: linear-gradient(to bottom, #d64b4b, #ab2c2c);
	box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.5);
	
	width: 600px;
	height: 60px;

	font-family: 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	text-shadow: #d65c5c 0 1px 0;
	padding: 10px 0px 6px 0px;
	z-index: 10;

	transform-origin: center center;
	transform: translate(-270px, 38px) rotate(43deg) translate(0px, -150px);
}

/************************************************************
 *           The layout of the waiting overlay              *
 ************************************************************/
#waiting{
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 20;

	background: rgba(0, 0, 0, 0.6);
	text-align: center;
}

#waiting-image{
	display: block;
	margin: auto;
	margin-top: 15%;
}

/**********************************************************
 *          The layout of the error overlay               *
 **********************************************************/

#overlay > ul.errors{
	margin-top: 30px;
	margin-bottom: 40px;
}


#overlay > ul.errors > li{
	margin: 3px 5px 0px 25px;
	font-weight: bold;
	font-size: 14px;
	color: red;
}

/** Go to hell Facebook **/
iframe[name="async_sending_0"]{
	display: none;
}
