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

body {
	background-image: url("/SiteImages/homePage.png");
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	font-family: 'Segoe UI', sans-serif;
}


.box {
	width: 341px;
	max-width: 90vw;
	margin: 60px auto;
	background-color: rgba(0, 0, 0, 0.85);
	padding: 40px 35px;
	border-radius: 16px;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
	color: #ffffff;
}
@media (max-width: 500px) {
	.box {
		width: 90%;
		padding: 25px 20px;
	}
}

.box img {
	display: block;
	margin: 0 auto 20px auto;
	max-width: 160px;
	height: auto;
}

.box h1 {
	text-align: center;
	margin-bottom: 24px;
	font-size: 26px;
	color: #ffffff;
}

.form-toggle {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 20px;
}

.form-toggle label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #ffffff;
}

.form-toggle input[type="radio"] {
	appearance: auto;
	width: 16px;
	height: 16px;
}

/* Inputs */
/* START: Expand input fields slightly on focus, without breaking layout */
input[type="text"],
input[type="email"],
input[type="password"] {
	width: 100%;
	background-color: #ffffff;
	color: #000000;
	padding: 12px;
	margin-top: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	border-color: #bd7558;
	box-shadow: 0 0 0 3px rgba(189, 117, 88, 0.2);
	transform: scale(1.02); /* slight zoom effect */
}
/* END */


input:focus {
	border-color: #bd7558;
	outline: none;
}

/* Button */
.bttn {
	width: 100%;
	padding: 12px;
	margin-top: 16px;
	background-color: #bd7558;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.bttn:hover {
	background-color: #a54a3c;
}

/* Status Messages */
.error, .success {
	text-align: center;
	margin-top: 12px;
	font-size: 14px;
	padding: 10px;
	border-radius: 6px;
}

.error {
	background-color: #bd7558;
	color: #ffffff;
}

.success {
	background-color: #4CAF50;
	color: #ffffff;
}

/* Forgot password link */
#reset-link {
	margin-top: 18px;
	text-align: center;
}

#reset-link a {
	font-size: 14px;
	color: #ffffff;
	text-decoration: none;
}

#reset-link a:hover {
	color: #bd7558;
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
	.box {
		margin: 30px 15px;
		padding: 30px 20px;
	}

	.box h1 {
		font-size: 22px;
	}
}

.form-toggle {
	display: flex;
	justify-content: center;
	gap: 0;
	background-color: transparent;
	border: 1px solid #bd7558;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 25px;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.form-toggle input[type="radio"] {
	display: none;
}

.form-toggle label {
	padding: 10px 20px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
	user-select: none;
	border-right: 1px solid #bd7558;
}

.form-toggle label:last-of-type {
	border-right: none;
}

.form-toggle input[type="radio"]:checked + label {
	background-color: #bd7558;
	color: #ffffff;
}
.error {
	background-color: #ffdddd;
	color: #b30000;
	border: 1px solid #e06666;
	padding: 12px 16px;
	margin: 15px 0;
	font-weight: 500;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
	animation: fadeIn 0.4s ease;
}

.error::before {
	content: "⚠️";
	font-size: 18px;
}
input.error-input {
	border: 2px solid #e06666 !important;
	background-color: #fff8f8;
}

@keyframes shake {
	0% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-4px); }
	100% { transform: translateX(0); }
}

input.error-input.shake {
	animation: shake 0.3s ease;
}
.back-btn {
	display: inline-block;
	margin-top: 15px;
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #bd7558;
	font-weight: normal;
	text-align: center;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.back-btn:hover {
	background-color: #bd7558;
	color: white;
}




