@charset "UTF-8";
/* Login + password reset pages */

.login-page{
	margin: 0;
	/* override main.css html,body{height:100%} — a locked height makes the
	   card flex-shrink and clip the submit button on short viewports */
	height: auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	color: #22354C;
	background-color: #1B2B41;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='110' viewBox='0 0 900 110'%3E%3Cpath d='M0 55 Q225 0 450 55 T900 55 V110 H0 Z' fill='%23FFFFFF' fill-opacity='0.03'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='70' viewBox='0 0 700 70'%3E%3Cpath d='M0 35 Q175 0 350 35 T700 35 V70 H0 Z' fill='%23FFFFFF' fill-opacity='0.04'/%3E%3C/svg%3E"),
		linear-gradient(165deg, #24374F 0%, #1B2B41 55%, #16243A 100%);
	background-repeat: repeat-x, repeat-x, no-repeat;
	background-position: bottom left, bottom left, center;
	background-size: 900px 110px, 700px 70px, cover;
	background-attachment: fixed;
}

/* the AI helper launcher is pointless when logged out */
.login-page .helpButton{
	display: none;
}

/* ---------- Card ---------- */
/* card shell is navy (not white) so no light sliver shows on the
   anti-aliased top corners against the dark page background */
.login-card{
	width: 100%;
	max-width: 400px;
	flex-shrink: 0;
	background: #1C2C42;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(10, 18, 30, 0.45);
}
.login-head{
	background: #1C2C42;
	padding: 30px 32px 24px;
	text-align: center;
}
.login-head img{
	max-width: 210px;
	width: 100%;
	height: auto;
}
.login-wave{
	height: 7px;
	background-color: #FFFFFF;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='7' viewBox='0 0 36 7'%3E%3Cpath d='M0 0 H36 V2.5 Q27 7 18 2.5 T0 2.5 Z' fill='%231C2C42'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: top left;
}
.login-body{
	background: #FFFFFF;
	padding: 26px 32px 30px;
}

/* ---------- View toggle (radios kept for the CSS-only switch) ---------- */
.login-tab-radio{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.sign-in-htm,
.for-pwd-htm{
	display: none;
}
#tab-1:checked ~ .login-form .sign-in-htm,
#tab-2:checked ~ .login-form .for-pwd-htm{
	display: block;
	animation: login-fade 0.2s ease;
}
@keyframes login-fade{
	from{ opacity: 0; transform: translateY(4px); }
	to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
	#tab-1:checked ~ .login-form .sign-in-htm,
	#tab-2:checked ~ .login-form .for-pwd-htm{
		animation: none;
	}
}

/* ---------- Typography ---------- */
.login-title{
	font-family: 'Nunito', Roboto, Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: #22354C;
	margin: 0 0 4px;
}
.login-note{
	font-size: 13px;
	line-height: 1.5;
	color: #64748E;
	margin: 0 0 18px;
}
.login-title + .group{
	margin-top: 18px;
}

/* ---------- Form ---------- */
.login-form .group{
	margin-bottom: 15px;
}
.login-form .label{
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748E;
}
.login-form .input{
	display: block;
	width: 100%;
	padding: 11px 14px;
	font-size: 16px; /* below 16px iOS Safari auto-zooms on focus */
	font-family: inherit;
	color: #22354C;
	background: #FFFFFF;
	border: 1px solid #D5DEEB;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-form .input:focus{
	border-color: #5789D6;
	box-shadow: 0 0 0 3px rgba(87, 137, 214, 0.18);
}
.login-form .input.error{
	background: #FDF2F2 !important;
	border-color: #E05252;
}
.login-form .button{
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 12px 14px;
	font-size: 14.5px;
	font-weight: 600;
	font-family: inherit;
	color: #FFFFFF;
	background: #5789D6;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.login-form .button:hover{
	background: #4472BC;
}
.login-form .button:focus-visible{
	outline: none;
	box-shadow: 0 0 0 3px rgba(87, 137, 214, 0.4);
}

/* field messages */
#logerror{
	color: #C0392B;
	font-size: 12.5px;
	margin-top: 6px;
	min-height: 0;
}
#mes{
	display: block;
	color: #64748E;
	font-size: 12.5px;
	font-style: normal;
	margin-top: 6px;
}

/* secondary links */
.login-alt{
	display: block;
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
	color: #5789D6;
	cursor: pointer;
}
.login-alt:hover{
	color: #4472BC;
	text-decoration: underline;
}
/* the hidden view-toggle radios stay keyboard-focusable — show focus on their labels */
.login-tab-radio:focus-visible ~ .login-form .login-alt{
	text-decoration: underline;
	outline: 2px solid rgba(87, 137, 214, 0.6);
	outline-offset: 2px;
	border-radius: 4px;
}
a.login-alt{
	text-decoration: none;
}

/* footer line under the card */
.login-foot{
	margin-top: 18px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 440px){
	.login-body{
		padding: 22px 20px 24px;
	}
	.login-head{
		padding: 24px 20px 20px;
	}
}
