﻿/* MAIN *************************************/
html,
body {
	margin: 0;
	padding: 0;
}

body {
	background-color: white;
	line-height: 1.3;
	min-width: 320px;
}

body,
input,
textarea,
button {
	font-family: 'CSRegular', Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #555;
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

.ie7 body,
.ie8 body {
	min-width: 980px;
}

.ie7 .homepage .header .logo,
.ie8 .homepage .header .logo {
	background: url("../Content/Image/primabanka.png") top left no-repeat;
}

.ie7 .homepage .login-box {
	height: 340px;
}

	.ie7 .homepage .login-box .top {
		top: 1px;
	}

	.ie7 .homepage .login-box .bottom {
		bottom: 1px;
	}
	/*.ie7 .homepage .error .top {
  top: -40px;
}
.ie7 .homepage .error .bottom {
  bottom: -40px;
} */
	.ie7 .homepage .login-box input {
		width: 258px;
	}

	.ie7 .homepage .login-box .input .corner,
	.ie8 .homepage .login-box .input .corner {
		display: block;
	}

.ie7 .submit .before,
.ie7 .submit .after,
.ie8 .submit .before,
.ie8 .submit .after {
	display: block;
}


.homepage .page {
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
}

.homepage .row {
	padding: 20px 20px;
}

.homepage .content {
	background-image: none;
	background-color: #f6f6f6;
	border-radius: 10px;
}

	.homepage .content .row {
		padding: 20px 20px;
	}

.homepage .header {
	height: 110px;
	padding-top: 43px;
}

	.homepage .header .logo {
		background: url("../Content/Image/primabanka.svg") top left no-repeat;
		width: 171px;
		height: 33px;
		display: inline-block;
		float: left;
		text-decoration: none;
	}

.homepage .login-box {
	width: 340px;
	position: relative;
	z-index: 500;
	height: 550px;
	transition: height 0.3s;
	margin-bottom: 25px;
	max-width: 100%;
	top: 2px;
	left: 0px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
}

	.homepage .login-box .inner {
		margin: 0px;
		padding: 29px 30px 29px 30px;
		background-color: #ffffff;
		border-radius: 10px;
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		left: 0;
	}

		.homepage .login-box .inner .wrapper {
			position: relative;
		}

.homepage h1 {
	margin: 0 0 9px;
}

.homepage .login-box form.login {
	display: block;
}

.homepage .login-box form.code {
	display: none;
}

	.homepage .login-box form.code button {
		margin-top: 5px;
	}

	.homepage .login-box form.code input {
		font-size: 1em;
	}

.homepage .login-box form.security {
	display: none;
}

	.homepage .login-box form.security button {
		margin-top: 0px;
	}

.homepage .login-box form.logout {
	display: none;
}

	.homepage .login-box form.logout .message {
		padding: 15% 0%;
		color: #555555;
	}

		.homepage .login-box form.logout .message .icon {
			display: inline-block;
			background-image: url("../Content/Image/logout.svg");
			width: 36px;
			height: 36px;
			margin-right: 12px;
			vertical-align: middle;
		}

		.homepage .login-box form.logout .message .text {
			display: inline-block;
			width: 70%;
			vertical-align: middle;
		}

.homepage form {
	position: absolute;
	width: 100%;
}

.homepage .login-box .input {
	position: relative;
	margin-bottom: 20px;
}

	.homepage .login-box .input .corner {
		width: 4px;
		height: 4px;
		display: none;
	}

		.homepage .login-box .input .corner.top.left {
			background-position: -250px -160px;
		}

		.homepage .login-box .input .corner.top.right {
			background-position: -256px -160px;
		}

		.homepage .login-box .input .corner.bottom.left {
			background-position: -250px -166px;
		}

		.homepage .login-box .input .corner.bottom.right {
			background-position: -256px -166px;
		}

.homepage input,
.homepage textarea {
	background-color: #ffffff;
	border-color: #aaaaaa;
	padding: 12px 14px;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	border-style: solid;
	border-width: 1px;
	border-radius: 4px;
	font-size: 1.025em;
	-webkit-appearance: none;
	-webkit-transition: border-color 0.3s;
	-moz-transition: border-color 0.3s;
	-ms-transition: border-color 0.3s;
	-o-transition: border-color 0.3s;
	transition: border-color 0.3s;
	display: block;
	color: #000;
}
	/*.homepage input.placeholder,
.homepage textarea.placeholder {
  color: #bbb;
}*/

	.homepage input:focus,
	.homepage textarea:focus,
	.homepage input.focus,
	.homepage textarea.focus {
		outline: none;
		border-color: #a8c900;
		box-shadow: 0 0 1px rgba(152, 182, 0, 0.5);
	}

.homepage .login-box .input.focus .corner.top.left {
	background-position: -250px -180px;
}

.homepage .login-box .input.focus .corner.top.right {
	background-position: -256px -180px;
}

.homepage .login-box .input.focus .corner.bottom.left {
	background-position: -250px -186px;
}

.homepage .login-box .input.focus .corner.bottom.right {
	background-position: -256px -186px;
}

.homepage input.invalid,
.homepage textarea.invalid {
	border-color: #da0612;
	box-shadow: 0 0 1px rgba(218, 6, 18, 0.5);
	color: #da0612;
}

.homepage .login-box .input.invalid .corner.top.left {
	background-position: -250px -200px;
}

.homepage .login-box .input.invalid .corner.top.right {
	background-position: -256px -200px;
}

.homepage .login-box .input.invalid .corner.bottom.left {
	background-position: -250px -206px;
}

.homepage .login-box .input.invalid .corner.bottom.right {
	background-position: -256px -206px;
}


.homepage .submit {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	width: 100%;
	/*height: 51px;*/
	text-align: center;
	position: relative;
	background: url('Image/bg_button.png') repeat-x left top;
	cursor: pointer;
	font-size: 1.2em;
	font-weight: bold;
	color: #ffffff;
	border-radius: 4px;
	outline: none;
	/*line-height: 40px;*/
	display: block;
	max-width: 280px;
	margin-bottom: 10px;
	top: -18px;
	left: 0px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
}

	.homepage .submit .before,
	.homepage .submit .after {
		width: 4px;
		height: 40px;
		background-image: url("../Content/Image/sprite.png");
		background-repeat: no-repeat;
		position: absolute;
		top: 0;
		display: none;
	}

.homepage input.submit .before {
	background-position: -270px -160px;
	left: 0;
}

.homepage input.submit .after {
	background-position: -280px -160px;
	right: 0;
}

.homepage input.submit .icon {
	width: 8px;
	height: 14px;
	background: url("../Content/Image/sprite.png") -290px -160px no-repeat;
	margin-left: 5px;
	display: inline-block;
	vertical-align: middle;
}

.homepage .submit:hover {
	background-position: 0px -40px;
	color: #555555;
}

	.homepage .submit:hover .before {
		background-position: -270px -200px;
	}

	.homepage .submit:hover .after {
		background-position: -280px -200px;
		right: 0;
	}

	.homepage .submit:hover .icon {
		background-position: -290px -180px;
	}

.homepage .footer {
	text-align: center;
	color: #313131;
	font-size: 1em;
}

.homepage .login-box .footer.mobile {
	display: none;
}

.homepage .footer .row {
	padding-top: 15px;
	padding-bottom: 0px;
}

.homepage .footer .line {
	border-top: 1px solid #c1c1c1;
	margin: 0;
	font-size: 0.916em;
}

.homepage .footer .info {
	padding: 15px 60px;
	line-height: 1.4;
}

::-webkit-input-placeholder { /* Safari, Chrome and Opera */
	color: #bbbbbb;
}

:-moz-placeholder { /* Firefox */
	color: #bbbbbb;
}

:-ms-input-placeholder { /* IE 10+ */
	color: #bbbbbb;
}

::-ms-input-placeholder { /* Edge */
	color: #bbbbbb;
}

:placeholder-shown { /* Default */
	color: #bbbbbb;
}

@font-face {
	font-family: 'CSlight';
	src: url('../fonts/Centrale_Sans_Light-webfont.eot');
	src: url('../fonts/Centrale_Sans_Light-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/Centrale_Sans_Light-webfont.woff') format('woff'), url('../fonts/Centrale_Sans_Light-webfont.ttf') format('truetype'), url('../fonts/Centrale_Sans_Light-webfont.svg#CentraleSansLightLight') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'CSRegular';
	src: url('../fonts/Centrale_Sans_Regular-webfont.eot');
	src: url('../fonts/Centrale_Sans_Regular-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/Centrale_Sans_Regular-webfont.woff') format('woff'), url('../fonts/Centrale_Sans_Regular-webfont.ttf') format('truetype'), url('../fonts/Centrale_Sans_Regular-webfont.svg#CentraleSansRegularRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'CSBold';
	src: url('../fonts/Centrale_Sans_Bold-webfont.eot');
	src: url('../fonts/Centrale_Sans_Bold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/Centrale_Sans_Bold-webfont.woff') format('woff'), url('../fonts/Centrale_Sans_Bold-webfont.ttf') format('truetype'), url('../fonts/Centrale_Sans_Bold-webfont.svg#CentraleSansBoldBold') format('svg');
	font-weight: normal;
	font-style: normal;
}

.homepage h1,
.homepage h2,
.homepage h3,
.homepage h4,
.homepage h5,
.homepage p {
	padding: 0;
	margin: 0;
}

.homepage h1 {
	font-size: 1.6em;
	color: #98b600;
	font-weight: normal;
	margin: 2px 0 20px;
	text-align: center;
	line-height: 1;
}

.clear {
	clear: both;
}

form .error {
	position: absolute;
	width: 215px;
	height: 135px;
	top: -16px;
	left: 285px;
	background-image: url("../Content/Image/error_box_left.png");
}

	form .error .wrapper {
		padding: 16px 17px;
	}

	form .error .holder {
		padding: 11px 20px;
		color: #313131;
	}

@media only screen and (max-width: 770px) {
	form .error {
		width: 320px;
		height: 114px;
		top: 94px;
		left: -19px;
		background-image: url("../Content/Image/error_box_top.png");
		z-index: 100;
	}
}

@media only screen and (max-width: 600px) {
	.homepage .header {
		height: 80px;
		padding-top: 10px;
		padding-left: 20px;
	}
}

@media only screen and (max-width: 480px) {
	.homepage h1 {
		font-size: 1.5em;
	}

	.homepage .content .row {
		padding: 20px 10px 0px 10px;
	}

	.homepage .login-box {
		height: 365px;
		margin-bottom: 0;
	}

	.homepage .footer .info {
		padding: 15px 25px;
	}

	.homepage .login-box .inner {
		padding: 29px 9px 29px 9px;
	}

	.homepage .footer {
		display: none;
	}

	.homepage .login-box .footer.mobile {
		display: block;
		/*position: absolute;
		top: 20px;
		left: 0;
		right: 0;*/
	}

	form .error {
		left: 2px;
	}
}

@media only screen and (max-width: 355px) {
	form .error {
		left: -2px;
	}
}

@media only screen and (max-width: 345px) {
	form .error {
		left: -5px;
	}
}

@media only screen and (max-width: 340px) {
	form .error {
		left: -7px;
	}
}

@media only screen and (max-width: 335px) {
	form .error {
		left: -10px;
	}
}

@media only screen and (max-width: 330px) {
	form .error {
		left: -12px;
	}
}

@media only screen and (max-width: 325px) {
	form .error {
		left: -15px;
	}
}

@media only screen and (max-width: 320px) {
	form .error {
		left: -18px;
	}
}
