/* The sign-in page - the look of the old master login (dark page, coral card, rounded fields), cleaned up. */
@font-face { font-family: 'NewReason'; src: url('../font/NewReasonTRIAL-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'NewReason'; src: url('../font/NewReasonTRIAL-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'NewReason'; src: url('../font/NewReasonTRIAL-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'NewReason'; src: url('../font/NewReasonTRIAL-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'NewReason'; src: url('../font/NewReasonTRIAL-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
	--page: #3B3C3D;
	--card: #FDA487;
	--ink: #3B3C3D;
	--field: #F7F7F7;
	--edge: #121212;
	--button: #D4D4EE;
	--button-hover: #ACACEC;
	--error: #B42318;
	--error-bg: #FEF3F2;
	--warn: #8A5A00;
	--warn-bg: #FFF8E6;
	--info: #1D4E89;
	--info-bg: #F2F6FC;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
	background: var(--page);
	color: var(--ink);
	font-family: 'NewReason', Arial, Helvetica, sans-serif;
	font-size: 15px;
}

.login-background {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.login-card {
	width: 100%;
	max-width: 624px;
	min-height: 500px;
	background: var(--card);
	border-radius: 15px;
	display: flex;
	justify-content: center;
	padding: 64px 16px 40px;
}

.login-form {
	width: 100%;
	max-width: 328px;
	text-align: center;
}

.logo { margin: 0 0 16px; line-height: 0; }
.logo img { max-width: 100%; height: auto; }

.mode-title { margin: 0 0 4px; font-weight: 600; font-size: 16px; }

.field {
	display: block;
	position: relative;
	margin-top: 10px;
}
.field input {
	width: 100%;
	height: 52px;
	padding: 0 20px 0 48px;
	border: 1px solid var(--edge);
	border-radius: 32px;
	background: var(--field) no-repeat 18px center;
	background-size: 16px 16px;
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}
.field input::placeholder { color: #777; }
.field input:focus { outline: 3px solid rgba(59, 60, 61, 0.35); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.icon-business input { background-image: url('../images/biz-icon.png'); }
.icon-user input { background-image: url('../images/user-icon.png'); }
.icon-lock input { background-image: url('../images/lock-icon.png'); }

.hint { margin: 12px 4px 0; font-size: 14px; }

.login-button {
	margin-top: 10px;
	width: 100%;
	height: 52px;
	border: 1px solid var(--edge);
	border-radius: 28px;
	background: var(--button);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}
.login-button:hover, .login-button:focus-visible { background: var(--button-hover); }
.login-button[disabled] { opacity: 0.7; cursor: progress; }
.login-button.is-busy::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	vertical-align: -3px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: login-spin 0.8s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-button.is-busy::before { animation-duration: 2.4s; } }

.notice {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 16px;
	border: 1px solid;
	text-align: left;
	font-size: 14px;
	line-height: 1.4;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice p { margin: 4px 0 0; }
.notice-error { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.notice-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn); }
.notice-info { color: var(--info); background: var(--info-bg); border-color: var(--info); }
.notice a { color: inherit; }

.links {
	margin-top: 14px;
	display: flex;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
}
.links a { color: var(--ink); text-decoration: none; }
.links a:hover, .links a:focus-visible { text-decoration: underline; }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* the three modes: an element marked for-<mode> shows only in those modes */
.for-login, .for-change, .for-forgot { display: none; }
.mode-login .for-login, .mode-change .for-change, .mode-forgot .for-forgot { display: revert; }
.mode-login label.for-login, .mode-change label.for-change, .mode-forgot label.for-forgot { display: block; }
