/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: 100%;
	font-weight: normal;
}
ul {
	list-style: none;
}
button,
input,
select {
	margin: 0;
}
html {
	box-sizing: border-box;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}
img,
video {
	height: auto;
	max-width: 100%;
}
iframe {
	border: 0;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
td,
th {
	padding: 0;
}

html {
	font-size: 16px;
}

/* Colors */

:root {
	/*	--primary: #264653;
	--secondary: #2a9d8f;*/
	--primary: #2b6c92;
	--primary-special: #358874;
	--secondary: #46b3e3;
	--alter1: #94cad0;
	--alter2: #0871b8;
	--alter3: rgba(242, 223, 53, 1);
	--alter4: rgba(54, 194, 91, 1);
	--light: #ffffff;
	--disabled: #fafafa;
	--background: #f7f7f7;
	--hover-primary: #f3f5f7;
	--warning: #f06543;
	--warning-light: #f79736;
	--danger: #de2121;
	--danger-bright: red;
	/*--hover-secondary: rgba(70,179,227,0.05);*/
	--hover-secondary: #f0f9fd;
	--hover-light: #fbfbfb;
	--hover-danger: #faf5f5;
	--text: #414141;
	--border: #efefef;
	--middle-grey: rgba(0, 0, 0, 0.6);
	--light-grey: rgba(0, 0, 0, 0.25);
	--box-shadow:
		rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
	--box-shadow3:
		rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.8) 0px 2px 4px -1px;
	--box-shadow2:
		rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
		rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
		rgba(0, 0, 0, 0.09) 0px 32px 16px;
	--HEADER-HEIGHT: 81px;
	--SIDEBAR-WIDTH: 280px;
}

body {
	user-select: none;
	background: var(--background);
	color: var(--text);
}

a,
a:link,
a:focus,
a:visited,
a:hover,
a:active {
	color: var(--text);
	text-decoration: none;
}

#app {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100vw;
	height: 100vh;
	font-family: 'Open Sans', sans-serif !important;
}

/*input, textarea, select{
   transition: all 0.30s ease
}

*/
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--secondary);
	/*box-shadow: 0 0 2px var(--secondary);*/
}

main {
	position: relative;
	height: 100vh;
	width: 100vw;
	max-width: 100%;
	min-height: max-content;
	position: fixed;
	background: url(/bg_forex.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	font-family: 'Open Sans', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-size: cover;
}

.bg-overlay {
	background: #0f4b6b;
	z-index: -1;
	opacity: 0.94;
	position: absolute;
	height: 100%;
	width: 100%;
	right: 0;
	bottom: 0;
	left: 0;
	top: 0;
}

.form {
	transform: translateY(-7vh);
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--light);
	width: 24vw;
	min-width: 400px;
	border-radius: 16px;
	box-shadow: var(--box-shadow2);
	padding: 36px;

	/*	Glass effect */
	/*background: rgba(255, 255, 255, 0.075);
	border: 1px solid var(--light);
	backdrop-filter: blur(10px);*/
}

.form.reset-password {
	min-width: 500px;
}

.logo {
	width: 156px;
	max-height: auto;
	margin-bottom: 24px;
	border-radius: 5px;
}

label {
	align-self: flex-start;
	font-size: 13px;
	color: #515151;
	font-weight: bold;
	padding: 6px 0;
}

input {
	font-size: 13px;
	border: 1px solid var(--border);
	border-radius: 5px;
	height: 37px;
	width: 100%;
	display: flex;
	padding: 0 9px;
	font-style: normal;
	font-family: inherit;
	color: var(--text);
}

input:disabled {
	background-color: var(--background);
	opacity: 0.8 !important;
}

input {
	border: 1px solid var(--border);
	border-radius: 5px;
	height: 45px;
	width: 100%;
	padding: 5px;
	margin-bottom: 24px;
}

input[type='submit'] {
	font-weight: bold;
	cursor: pointer;
	margin-top: 12px;
	height: 55px;
	color: var(--light);
	background: var(--secondary);
	border: none;
	outline: 0;
	transition: background-color 0.2s ease;
}

input[type='submit']:hover {
	background: var(--primary);
}

input[type='submit']:disabled {
	cursor: not-allowed;
	opacity: 0.4 !important;
}

#wait {
	position: absolute;
	right: 0;
	bottom: 0;
	top: 0;
	left: 0;
	z-index: 50000;
	cursor: wait !important;
	display: none;
}

#wait.show {
	display: block;
}

.link,
p.help {
	font-size: 13px;
	text-align: center;
	padding: 12px 0;
}

a.link {
	cursor: pointer;
	text-decoration: underline;
	color: var(--secondary);
}

p.version {
	font-size: 15px;
	color: var(--light);
}

p.error {
	color: var(--danger);
	font-size: 13px;
}

p.error:empty {
	display: none;
}

.hidden {
	display: none !important;
}

.info {
	color: var(--primary) !important;
}

.warning {
	color: var(--warning) !important;
}

.danger {
	color: var(--danger) !important;
}

#show-password {
	text-decoration: underline;
	margin-bottom: 18px;
	cursor: pointer;
	align-self: flex-start;
	font-size: 13px;
	color: var(--primary-special);
}

#has-error {
	display: none;
}

#has-error.show {
	display: block;
}

.wiggle {
	animation: shake 0.2s ease-in 0s 2;
}

@keyframes shake {
	0% {
		margin-left: 0px;
	}
	25% {
		margin-left: 18px;
	}
	75% {
		margin-left: -18px;
	}
	100% {
		margin-left: 0px;
	}
}

a.chevron {
	position: absolute;
	left: 36px;
	font-size: 24px;
	color: var(--primary);
}

.chevron:hover {
	position: absolute;
	left: 36px;
	font-size: 24px;
	color: var(--secondary);
}

@view-transition {
	navigation: auto;
	types: slide, forwards;
}

/* PROFILE */

h1 {
	padding-top: 24px;
	color: var(--light);
	font-size: 21px;
	text-align: center;
	margin-bottom: 24px;
}

.logo-tab {
	background: var(--light);
	padding: 18px 24px;
	margin: 48px 0;
	border-radius: 9px;
	box-shadow: var(--box-shadow3);
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.logo-tab img {
	display: flex;
	width: 70%;
}

.available-apps {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	background: var(--light);
	border-top-left-radius: 9px;
	border-top-right-radius: 9px;
	max-height: 75vh;
	overflow: hidden;
	overflow-y: auto;
}

.app-card {
	width: 450px;
	min-height: 111px;
	display: flex;
	overflow: hidden;
	align-items: center;
	justify-items: flex-start;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	padding: 12px 24px;
}

.username {
	color: var(--light);
	font-size: 24px;
	margin-bottom: 24px;
	position: fixed;
	top: 24px;
	right: 24px;
}

.app-card:hover {
	background: var(--hover-light);
}

.app-card:last-child {
	border-bottom: none;
}

.app-card .logo {
	width: 98px;
	height: 32px;
	display: flex;
	margin: 0 15px 0 12px;
}

.app-card .card-content {
	display: flex;
	flex-direction: column;
	margin-left: 24px;
}

.app-card .card-content .pretty_url {
	color: var(--light-grey);
	font-size: 15px;
	font-style: italic;
}

.app-card:hover .card-content .pretty_url {
	text-decoration: underline;
}

.app-card .card-content .env {
	font-weight: 500;
	font-size: 18px;
	color: var(--alter4);
}

.app-card.accounts .logo {
	background: url('./apps/accounts.png');
}

.app-card.mydebt .logo {
	background: url('./apps/mydebt.png');
}

.app-card.market-manager .logo {
	background: url('./apps/market-manager.png');
}

#logout input {
	font-size: 15px;
	display: flex;
	font-style: normal;
	width: 450px;
	min-height: 81px;
	margin: 0;
	margin-bottom: 9vh;
	font-weight: bold;
	cursor: pointer;
	color: var(--light);
	background: var(--primary);
	border: none;
	outline: 0;
	border-bottom-left-radius: 9px;
	border-bottom-right-radius: 9px;
	transition: background-color 0.2s ease;
	box-shadow: var(--box-shadow2);
}

#logout:hover input {
	background: var(--secondary);
}
