/* responsive-login.css: Mobile-first responsive login page */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

.responsive-login-body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background-image: url('/AuthApp/images/background_sm.png');
	background-size: auto 100%;
	background-repeat: no-repeat;
	padding: 16px;
}

.responsive-login-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 100vh;
}

.responsive-login-container {
	background-color: #D9E1E7;
	border-radius: 8px;
	padding: 32px 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 420px;
}

.responsive-logo {
	text-align: center;
	margin-bottom: 24px;
}

.responsive-logo img,
.responsive-logo-img {
	max-width: 120px;
	height: auto;
	display: block;
}

.responsive-login-heading {
	font-size: 18px;
	font-weight: 600;
	color: black;
	margin-bottom: 24px;
	line-height: 1.4;
}

.responsive-login-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.responsive-input {
	padding: 10px 16px;
	border: 1px solid #6686a0;
	border-radius: 5px;
	font-size: 15px;
	font-family: inherit;
	height: 40px;
	background-color: #f5f6f7;
	color: #335e80;
	line-height: 1.6;
	transition: all 0.2s ease;
    outline: none;
}

.responsive-input:focus {
	border-color: #003661;
}

.responsive-input:hover {
	border-color: #003661;
}

.responsive-input::placeholder {
	color: #8a8d91;
}

.show-password-group {
	display: flex;
	align-items: center;
    justify-content: end;
	gap: 8px;
	margin: 8px 0;
	font-size: 12px;
}

.show-password-group input[type="checkbox"] {
	cursor: pointer;
	width: 14px;
	height: 14px;
}

.show-password-group label {
	cursor: pointer;
	color: #003661;
	user-select: none;
}

.button-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
}

.responsive-login-button {
	background-color: #003661;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-weight: 600;
	padding: 10px 40px;
	width: fit-content;
	height: auto;
	cursor: pointer;
	margin-top: 8px;
	margin-bottom: 12px;
	transition: all 0.25s ease;
	letter-spacing: 0.5px;
}

.responsive-login-button:hover {
	color: #99FFEE;
}

.responsive-login-button:active {
	transform: scale(0.98);
}

.responsive-links-group {
	display: flex;
	justify-content: end;
	gap: 16px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.responsive-link {
	font-size: 12px;
	color: #335E80;
	text-decoration: none;
	font-weight: 800;
    border-bottom: 1px solid #335E80;
	transition: color 0.2s ease;
}

.responsive-link:hover {
	color: #003661;
}

.login-page-messages {
	width: 100% !important;
	font-weight: bold !important;
	font-size: 14px !important;
	word-wrap: break-word !important;
	list-style-type: none !important;
	margin: 0px 0px 16px 0px !important;
}

.responsive-login-footer {
	margin-top: 24px;
	font-size: 12px;
	color: #003661;
	line-height: 1.6;
}

.responsive-login-footer p {
	margin: 0;
}

/* Help Popup Styles */
.help-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	z-index: 1000;
}

.help-popup-content {
	background-color: #ffffff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-width: 350px;
	width: auto;
	min-width: 300px;
	color: #003661;
	text-align: left;
	position: fixed;
	z-index: 1001;
	top: auto;
	left: 10%;
}

.help-popup-content h2 {
	font-size: 18px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 8px;
	color: #003661;
}

.help-popup-content p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.help-popup-content a {
	color: #003661;
	text-decoration: none;
}

.help-popup-content a:hover {
	color: #002244;
}

/* Helpline Table Styles */
.helpline-table {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-collapse: collapse;
	margin: 16px 0;
}

.helpline-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 2px 8px;
	border-bottom: 1px solid #003661;
	align-items: center;
}

.helpline-location {
	font-size: 14px;
	font-weight: 600;
	color: #003661;
	text-align: left;
}

.helpline-phone {
	font-size: 14px;
	color: #003661;
	white-space: nowrap;
}

.helpline-email {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: #003661;
}

.email-label {
	font-weight: 600;
	color: #003661;
}

.helpline-email a {
	color: #003661;
	width: fit-content;
	text-decoration: none;
	border-bottom: 1px solid #003661;
	word-break: break-all;
}

.helpline-email a:hover {
	color: #002244;
}

/* Mobile First: Small Screens (320px and up) */
@media (min-width: 320px) {
	.responsive-login-container {
		padding: 32px 30px;
	}

	.responsive-logo img {
		max-width: 120px;
	}

	.responsive-login-heading {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.responsive-input {
		font-size: 14px;
		padding: 8px 12px;
		height: 36px;
	}

	.responsive-login-button {
		font-size: 14px;
		padding: 8px 32px;
	}

	.help-popup-content {
		width: 100%;
		min-width: auto;
		padding: 20px;
	}

	.help-popup-content h2 {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.helpline-location {
		font-size: 12px;
		margin-bottom: 4px;
	}

	.helpline-phone {
		font-size: 12px;
		text-align: left;
	}

	.helpline-email {
		font-size: 12px;
	}

	.email-label {
		font-size: 12px;
	}
}

/* Tablets and Medium Screens (600px and up) */
@media (min-width: 600px) {
	.responsive-login-body {
		padding: 20px;
		background-image: url('/AuthApp/images/background.png');
	}

	.responsive-login-container {
		padding: 32px 40px;
		max-width: 450px;
	}

	.responsive-logo img {
		max-width: 140px;
	}

	.responsive-login-heading {
		font-size: 18px;
		margin-bottom: 24px;
	}

	.responsive-input {
		font-size: 15px;
		padding: 10px 16px;
		height: 40px;
	}

	.responsive-login-button {
		font-size: 15px;
		padding: 10px 40px;
	}

    .help-popup-content {
        left: 40%;
		max-width: 380px;
		padding: 28px;
    }

	.help-popup-content h2 {
		font-size: 18px;
		margin-bottom: 16px;
	}

	.helpline-location {
		font-size: 14px;
		text-align: left;
	}

	.helpline-phone {
		font-size: 14px;
	}

	.helpline-email {
		font-size: 14px;
	}

	.email-label {
		font-size: 14px;
	}
}

/* Large Screens (900px and up) */
@media (min-width: 900px) {
	.responsive-login-body {
		padding: 20px;
		background-image: url('/AuthApp/images/background_lg.png');
	}

	.responsive-login-container {
		padding: 40px 60px;
		max-width: 500px;
	}

	.responsive-logo img {
		max-width: 150px;
	}

	.responsive-login-heading {
		font-size: 20px;
		margin-bottom: 28px;
	}

	.responsive-input {
		font-size: 16px;
		padding: 12px 16px;
		height: 44px;
	}

	.responsive-login-button {
		font-size: 16px;
		padding: 12px 48px;
	}

	.help-popup-content {
		left: 50%;
		max-width: 400px;
		padding: 24px;
	}

	.help-popup-content h2 {
		font-size: 20px;
		margin-bottom: 18px;
	}

	.helpline-location {
		font-size: 15px;
	}

	.helpline-phone {
		font-size: 15px;
	}

	.helpline-email {
		font-size: 15px;
	}

}

/* Extra Large Screens (1200px and up) */
@media (min-width: 1200px) {
	.responsive-login-container {
		max-width: 520px;
	}

}

/* Landscape orientation adjustments */
@media (max-height: 500px) {
	.responsive-login-body {
		min-height: auto;
		padding: 8px;
	}

	.responsive-login-container {
		padding: 30px 30px;
	}

	.responsive-logo img {
		max-width: 100px;
	}

	.responsive-login-heading {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.responsive-links-group {
		gap: 8px;
		margin-top: 8px;
	}

	.responsive-login-footer {
		margin-top: 12px;
		font-size: 10px;
	}
}
