﻿@font-face {
	font-family: 'Open Sans';
	src: url("fonts/OpenSans-Regular.ttf");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Open Sans';
	src: url("fonts/OpenSans-Bold.ttf");
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Open Sans';
	src: url("fonts/OpenSans-Italic.ttf");
	font-weight: normal;
	font-style: italic;
}

html {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	border: 0;

	align-items: center;
	background: linear-gradient(#ffffff00, #818ce426 50%, #ffffff00), 
		radial-gradient(at 97% 65%, #f5a587, #070a1b00 50%), 
		radial-gradient(at 50% 62%, #818ce4, #191b29 70%);
	display: flex;
	flex-direction: column;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 13px;
	justify-content: center;
	overflow: hidden;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
}

.top-logo {
	max-width: 137px;
	left: 50%;
	position: relative;
	margin: 10px 0 24px -68px;
}

h1 {
	font-size: 17px;
	margin: 0 0 24px;
}

h2 {
	font-size: 14px;
	margin: 0 0 12px;
}

main {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: auto;
	max-width: 100%;
	overflow: hidden;
	padding: 24px 16px;
}

main > .container {
	background-color: white;
	border-radius: 2px;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	max-height: 100%;
	max-width: 100%;
	overflow-y: auto;
	padding: 24px;
	width: 360px;
}

main > .container.has-error {
	animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	transform: translate3d(0, 0, 0);
}

main > .broken-pane {
	background-color: #a1a3a7;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

main > .broken-pane > .broken-overlay {
	background-color: white;
	text-align: center;
	padding: 30px;
	margin-left: -175px;
	margin-top: -105px;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 350px;
}
main > .broken-pane > .broken-overlay > .logo {
	height: 24px;
	margin-bottom: 12px;
}

footer {
	color: white;
}

footer p {
	margin: 0;
	opacity: 0.18;
	padding-bottom: 24px;
}

footer a {
	opacity: 0.4;
}

label {
	align-items: center;
	display: flex;
	margin-bottom: 12px;
}

label.factor-radio-button {
	height: 24px;
	margin: 0;
}

label.factor-radio-button input[type='radio'] {
	flex-shrink: 0;
	margin: 0 6px 2px 0;
}

label.factor-radio-button ~ input[type='submit'] {
	margin-top: 24px;
}

select,
input[type='password'],
input[type='text'] {
	background-color: white;
	border: 1px solid #dddddd;
	border-radius: 2px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: inherit;
	height: 38px;
	padding: 10px 12px;
	margin-bottom: 12px;
	width: 100%;
}

input[type='checkbox'] {
	margin: 0 6px 0 0;
}

a.button,
input[type='submit'] {
	align-items: center;
	background-color: #72bc57;
	border: 1px solid #72bc57;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	box-sizing: border-box;
	color: white;
	cursor: pointer;
	display: flex;
	font-family: inherit;
	justify-content: center;
	padding: 10px 24px;
	margin-bottom: 12px;
	height: 38px;
	text-decoration: none;
	transition: background-color 150ms, border-color 150ms;
	width: 100%;
}

a.button:hover,
input[type='submit']:hover {
	background-color: #5ea245;
	border-color: #5ea245;
}

/* start neutral */
a.button.neutral,
input[type='submit'].neutral {
	background-color: white;
	border-color: #2997d6;
	color: #2997d6;
}

a.button.neutral:hover,
input[type='submit'].neutral:hover {
	background-color: #2997d6; /*white*/
	border-color: #2997d6; /*#25427c*/
	color: white; /*#25427c*/
}
/* end neutral */

/* start danger */
a.button.danger,
input[type='submit'].danger {
	background-color: #d7553d;
	border-color: #d7553d;
	color: white;
}

a.button.danger:hover,
input[type='submit'].danger:hover {
	background-color: #c1442d;
	border-color: #c1442d;
	color: white;
}
/* end danger */

.links {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.links a {
	display: inline-block;
	text-decoration: none;
	color: #2997d6;
	border-bottom: 1px solid #2997d6;
}

.links a + a {
	margin-top: 8px;
}

.links a:hover {
	border-color: #25427c;
	color: #25427c;
}

.divider {
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 24px;
	padding-top: 24px;
}

.qr-code {
	width: 171px;
	height: 171px;
	position: relative;
	margin-left: -85px;
	left: 50%;
	margin-bottom: 16px;
}

.text-code {
	font-family: Consolas, Menlo, monospace;
	letter-spacing: 1px;
	font-size: 120%;
}

span.dot {
	/*background-color: #bbbbbb;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.1);*/
	background-color: #cccccc;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	margin-right: 4px;
	display: inline-block;
}

span.dot.active {
	background-color: #72bc57;
}

p:empty {
	display: none;
}

p.error {
	color: tomato;
}

.margin-top-large {
	margin-top: 24px !important;
}

.margin-bottom-large {
	margin-bottom: 24px !important;
}

.margin-bottom-none {
	margin-bottom: 0 !important;
}

div.error {
	align-items: center;
	background-color: tomato;
	border-radius: 2px;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
	color: white;
	display: block;
	justify-content: center;
	font-weight: bold;
	font-size: 13px;
	margin-bottom: 24px;
	max-width: 380px;
	min-width: 328px;
	padding: 16px;
	position: relative;
	text-align: center;
}

div.error:empty {
	display: none;
}

div.error:after {
	content: '';
	border: 8px solid transparent;
	border-top-color: tomato;
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -8px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.two-column-form {
	display: flex;
}

.two-column-form input[type='text'] {
	width: 65%;
	margin-bottom: 0;
	box-sizing: border-box;
}

.two-column-form input[type='submit'] {
	margin-left: 3%;
	width: 32%;
	margin-bottom: 0;
	box-sizing: border-box;
}

.mfa-selector {
	display: flex;
	margin-bottom: 24px;
	margin-top: 24px;
}

.mfa-selector.display-vertical {
	flex-direction: column;
	margin-bottom: 0;
}

.mfa-selector > a,
.mfa-selector > div {
	flex: 1;
	padding: 8px 16px;
	box-sizing: border-box;
	border: 1px solid #dddddd;
	box-shadow: 0 0 0px 2px white inset;
	border-radius: 4px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.mfa-selector > a {
	color: inherit;
	text-decoration: none;
}

.mfa-selector > a:hover {
	color: inherit;
	text-decoration: none;
}

.mfa-selector > div:nth-child(2) {
	margin: 0 16px;
}

.mfa-selector > a:nth-child(2) {
	margin: 16px 0;
}

.mfa-selector > a:last-child {
	margin-bottom: 0;
}

.mfa-selector > a > i,
.mfa-selector > div > i {
	font-size: 32px;
}

.mfa-selector > a > span,
.mfa-selector > div > span {
	font-size: 11px;
	display: flex;
	align-items: center;
	margin-top: 4px;
}

.mfa-selector > a:hover,
.mfa-selector > div:hover,
.mfa-selector > div.selected {
	border-color: black;
	cursor: pointer;
}

.mfa-selector > div.selected:after {
	content: '';
	border: 1px solid black;
	width: 8px;
	height: 8px;
	position: absolute;
	bottom: -5px;
	transform: rotate(45deg);
	background: white;
	border-top: 0;
	border-left: 0;
}

.mfa-section {
	display: none;
	min-height: 145px;
}

.mfa-section.selected {
	display: block;
}