/* ================== Base Styles ================== */
body {
	font-family: Arial, sans-serif;
	background-color: #fff;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	box-sizing: border-box;
}

/* Header */
.top-header {
	height: 90px;
	background-color: #fff;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	padding: 0 15px;
	box-sizing: border-box;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10;
}

/* Logo */
.logo img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

/* Main container */
.main-container {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 100px;
	/* Space for the fixed header */
	padding-bottom: 60px;
	/* Space for the fixed footer */
	overflow-y: auto;
	box-sizing: border-box;
}

/* Login container */
.login-container {
	width: 95%;
	max-width: 600px;
	padding: 20px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

/* Heading */
h1 {
	font-size: 26px;
	margin-bottom: 20px;
	text-align: center;
}

/* Helper text */
.helper-text {
	font-size: 14px;
	color: #555;
	margin-bottom: 20px;
}

/* Form group */
.form-group {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 5px;
	color: #333;
}

.form-group input {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
}

.form-group input:focus {
	border-color: #0693e3;
}

/* Label row for email + link */
.label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

/* Links */
#login-instead {
	font-size: 14px;
	color: #333;
	margin-bottom: 5px;
	cursor: pointer;
}

#login-instead:hover {
	color: #0693e3;
}

/* Error messages */
.error-msg {
	color: red;
	margin-top: 5px;
	display: none;
}

/* Buttons */
.button-group {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

.login-btn,
.register-btn {
	background-color: #000;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	flex: 1;
}

.login-btn:hover,
.register-btn:hover {
	background-color: #222;
}

/* Footer / Bottom Bar */
.bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	z-index: 30;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	height: 60px;
	box-sizing: border-box;
}

.footer-text {
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.language-container select {
	padding: 6px;
	font-size: 14px;
}

/* ================================
   TABLETS
================================ */
@media (max-width: 768px) {
	.login-container {
		width: 90%;
		margin-top: 100px;
	}

	.bottom-bar {
		padding: 0 12px;
	}

	.language-container {
        width: auto;
        display: flex;
        justify-content: center;
    }

    .language-container select {
        width: auto;
        max-width: 90%;
        padding: 6px;
        font-size: 14px;
        text-align: left;
    }
}

/* ================================
   MOBILE
================================ */
html,
body {
	height: 100%;
	overflow: auto;
}

@media (max-width: 480px) {
	body {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 10px 0;
	}

	.top-header {
		height: 70px;
		padding: 10px 15px;
	}

	.logo img {
		width: 50px;
		height: 50px;
	}

	.main-container {
		overflow-y: auto;
		flex: 1;
		padding-top: 80px;
		padding-bottom: 60px;
	}

	.login-container {
		width: 98%;
		padding: 15px;
		margin-top: 0;
	}

	.button-group {
		flex-direction: column;
	}

	.login-btn,
	.register-btn {
		width: 100%;
	}

	.bottom-bar {
		height: auto;
		padding: 10px 12px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		text-align: center;
	}

	.footer-text {
		font-size: 12px;
		white-space: normal;
	}

	.language-container {
		width: auto;
		display: flex;
		justify-content: center;
	}

	.language-container select {
		width: auto;
		max-width: 90%;
		padding: 6px;
		font-size: 14px;
		text-align: left;
	}
}

.form-group input,
.form-group select,
.form-group input[type="date"] {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group input[type="date"]:focus {
	border-color: #0693e3;
}

.form-group select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
}

.form-group {
	position: relative;
}

.form-group select {
	background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
}

/* ================================
   MOBILE LANDSCAPE
================================ */
@media (min-width: 481px) and (max-width: 768px) {

	html,
	body {
		height: 100%;
		overflow: auto;
		/* Ensure scrolling is enabled */
	}

	.main-container {
		overflow-y: auto;
		/* Allow vertical scrolling on mobile landscape */
		padding-top: 80px;
		/* Ensure the same top gap as in mobile portrait */
		padding-bottom: 60px;
		/* Keep space for footer */
		flex: 1;
	}

	.login-container {
		width: 90%;
		padding: 15px;
		margin-top: 0;
		/* No additional margin-top */
	}

	.bottom-bar {
		height: auto;
		padding: 10px 12px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		text-align: center;
	}

	.footer-text {
		font-size: 12px;
		white-space: normal;
	}

	.language-container {
		width: auto;
		display: flex;
		justify-content: center;
	}

	.language-container select {
		width: auto;
		max-width: 90%;
		padding: 6px;
		font-size: 14px;
		text-align: left;
	}
}