html {
	overflow: auto !important;
}

body {
	background: linear-gradient(135deg, #0f2742 0%, #1e3a5f 100%) !important;
	font-family: "Segoe UI", Arial, Sans-Serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

table {
	width: 420px;
	margin: auto;
}

/* Bloc principal */
#loginForm {
	margin-top: 60px;
	margin-left: auto;
	margin-right: auto;
	width: 471px;
	min-height: 500px;
	position: relative;
	border: none;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

/* Logo / branding */
#loginLogo {
	background: none !important;
	background-image: none !important;
	background-repeat: no-repeat;
	background-position: center;
	height: auto;
	min-height: 0;
	padding: 28px 30px 10px 30px;
	position: relative;
	text-align: center;
}

#loginLogo img {
	display: inline-block;
	max-width: 260px;
	height: auto;
}

/* Formulaire */
#basicForm {
	margin-top: 18px;
}

.loginForm {
	position: absolute;
	top: 150px;
	left: 35px;
	right: 35px;
	width: auto;
	height: auto;
}

#loginForm div.input input {
	padding: 0 14px;
	border: solid 1px #cfd6df;
	width: 100%;
	height: 46px;
	margin: 0 0 12px 0;
	border-radius: 10px;
	box-sizing: border-box;
	font-size: 14px;
	color: #1f2937;
	background: #ffffff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#loginForm div.input input:focus {
	border-color: #c89b3c;
	box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15);
}

/* Message d'erreur */
div#msg {
	margin-bottom: 16px;
	font-family: "Segoe UI", Arial, Sans-Serif;
	font-size: 14px;
	min-height: 20px;
	color: #b42318;
	text-align: center;
}

/* Remember me */
#rememberUser {
	margin-top: 14px;
	margin-bottom: 16px;
	text-align: center;
}

#rememberUser label {
	cursor: pointer;
	font-size: 13px;
	margin-left: 0;
	color: #374151;
}

#rememberUser input {
	position: relative;
	top: 1px;
	margin-top: 0;
	margin-right: 6px;
}

/* Bouton */
#login {
	margin-top: 4px;
	text-align: center;
}

#login input,
#btnlogin {
	width: 200px;
	height: 42px;
	background: linear-gradient(135deg, #c89b3c 0%, #b8862f 100%);
	border: none;
	border-radius: 10px;
	color: white;
	cursor: pointer;
	font-family: "Segoe UI Semibold", "Segoe UI", Arial, Sans-Serif;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(184, 134, 47, 0.28);
	transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#login input:hover,
#btnlogin:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 22px rgba(184, 134, 47, 0.34);
	opacity: 0.98;
}

#login input:active,
#btnlogin:active {
	transform: translateY(0);
}

/* Liens */
a {
	color: #0f4c81;
}

a:visited {
	color: #0f4c81;
}

a:hover {
	color: #0c3d68;
}

/* Forgot password */
div#forgotPassword {
	text-align: right;
	margin-top: 10px;
}

#forgotPassword a {
	font-family: "Segoe UI", Arial, Sans-Serif;
	font-size: 13px;
	color: #374151;
	text-decoration: none;
	padding-right: 2px;
}

#forgotPassword a:hover {
	text-decoration: underline;
	color: #111827;
}

/* Footer login */
#loginFooter {
	position: absolute;
	bottom: 18px;
	height: auto;
	left: 24px;
	right: 24px;
}

/* Options */
div#loginOptions {
	height: 20px;
	margin-bottom: 1em;
	font-family: "Segoe UI", Arial, Sans-Serif;
	font-size: 13px;
	text-align: center;
}

#loginOptions a {
	text-decoration: none;
	cursor: pointer !important;
}

a#windowLoginPage:hover {
	text-decoration: underline;
}

/* Erreur */
#error {
	color: #800;
}

/* Sélecteur de coffre */
#selectVault {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 39, 66, 0.35);
}

#selectVault .dialog {
	background: white;
	margin-top: 9em;
	margin-left: auto;
	margin-right: auto;
	width: 340px;
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
	overflow: hidden;
}

#selectVault .dialog .title {
	margin: 0;
	position: relative;
	height: 42px;
	font-size: 16pt;
	color: #16324f;
	background: #f5f7fa;
	border-bottom: 1px solid #e5e7eb;
}

#selectVault .dialog .title .icon {
	background: url(images/M-Files_desktop16.png);
	width: 32px;
	height: 32px;
	position: absolute;
	left: 6px;
	top: 5px;
	background-repeat: no-repeat;
	background-position: center;
}

#selectVault .dialog .title .close {
	background: url(images/close16.png);
	cursor: pointer !important;
	width: 32px;
	height: 32px;
	position: absolute;
	right: 6px;
	top: 5px;
	background-repeat: no-repeat;
	background-position: center;
}

#selectVault .dialog .title .text {
	padding-top: 5px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
}

#selectVault div.vault {
	text-align: left;
	margin: 0 10px;
	padding: 0;
	display: block;
	border-bottom: 1px solid #e5e7eb;
}

#selectVault a.vault {
	display: block;
	text-decoration: none;
	margin: 0;
	padding: 12px 8px;
	color: #16324f;
}

#selectVault a.vault:hover {
	background: #eef4fb;
	color: #16324f;
	border-radius: 8px;
}

#selectVault a.vault,
#selectVault a.vault:visited {
	color: #16324f;
}

#selectVault div.vault.last {
	border-bottom: 0;
}

/* Infos */
#info {
	margin-top: 1.5em;
}

#advanced {
	position: absolute;
	color: #6b7280;
	right: 10px;
	bottom: 8px;
	text-decoration: underline;
	font-size: 8pt;
}

/* Password reset */
table.passwordreset {
	width: 500px;
	margin: auto;
}

td.passwordresettitle {
	text-align: right;
	width: 185px;
}

td.resetButtonCell {
	text-align: right;
}

.resetButton {
	margin-right: 35px;
}

/* Cursors */
#btnlogin {
	cursor: pointer !important;
}

#ResetPasswordLink {
	cursor: pointer !important;
}

#windowLoginPage {
	cursor: pointer !important;
}