@charset "UTF-8";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', sans-serif;
	background-size: cover;
	position: relative;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: -1;
}

.container {
	text-align: center;
	width: 100%;
	max-width: 960px;
	padding: 20px;
	animation: fadeIn 1s ease-in;
}

.title {
	color: white;
	font-size: 2.5rem;
	margin-bottom: 30px;
	text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.form-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-left: 70px;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(14px);
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
	max-width: 748px;
}

.center-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 250px;
	margin-right: 30px;
	margin-top: 70px;
}

.tab {
	padding: 14px 20px;
	background: linear-gradient(135deg, #8e2de2, #4a00e0);
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tab:hover {
	background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.tab.active {
	background: linear-gradient(135deg, #00b09b, #96c93d);
	font-weight: bold;
	transform: scale(1.05);
}

.right-panel {
	flex: 1;
	min-width: 260px;
}

.form-tab {
	display: none;
	animation: fadeIn 0.8s ease-in-out;
}

.form-tab.active {
	display: block;
}

.form-tab h2 {
	margin-bottom: 20px;
	color: #fff;
	font-size: 1.7rem;
}

.input-group {
	position: relative;
	margin: 10px 0;
}

/* ✅ Only apply left lock icon positioning */
.input-group > i:first-child {
	position: absolute;
	top: 50%;
	left: 2px;
	transform: translateY(-50%);
	color: #333;
	font-size: 16px;
}

.input-group input {
	width: 100%;
	padding: 12px 12px 12px 40px;
	border: 2px solid #ccc;
	border-radius: 8px;
	font-size: 16px;
	outline: none;
	transition: border 0.3s ease, box-shadow 0.3s ease;
	background-color: #f9f9f9;
}

/* Gradient Border and Animation on Focus */
.input-group input:focus {
	border: 2px solid transparent;
	background-clip: padding-box;
	box-shadow: 0 0 0 3px linear-gradient(45deg, #ff6ec4, #7873f5, #42e695);
	background-image: linear-gradient(#fff, #fff),
		linear-gradient(45deg, #ff6ec4, #7873f5, #42e695);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	animation: glow-border 1.2s ease-in-out infinite;
}

@keyframes glow-border {
	0% {
		box-shadow: 0 0 5px #ff6ec4;
	}
	50% {
		box-shadow: 0 0 15px #7873f5;
	}
	100% {
		box-shadow: 0 0 5px #42e695;
	}
}

button[type="submit"] {
	background: linear-gradient(to right, #f7971e, #ffd200);
	color: white;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s ease;
	width: 100%;
	margin-top: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button[type="submit"]:hover {
	background: linear-gradient(to right, #fc466b, #3f5efb);
}

a {
	color: #f8f8f8;
	font-size: 0.9em;
	text-decoration: underline;
	display: block;
	margin-top: 10px;
}

footer {
	margin-top: 20px;
	text-align: center;
	color: #f1f1f1;
	font-size: 0.85rem;
}

footer a {
	color: #fff;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* Responsive Layout */
@media (max-width: 768px) {
	.form-box {
		flex-direction: column;
		padding: 20px;
	}
	.center-panel {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
		margin-right: 0;
		margin-bottom: 20px;
	}
	.tab {
		flex: 1 1 45%;
		margin: 5px;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.title {
		font-size: 1.8rem;
		text-align: center;
	}
	.tab {
		font-size: 14px;
		padding: 10px;
	}
	.input-group input {
		font-size: 14px;
	}
}

/* Captcha Section */
.captcha-container {
	margin: 15px 0;
	text-align: center;
}

.captcha-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(45deg, #8e44ad, #3498db);
	color: #fff;
	font-weight: bold;
	letter-spacing: 3px;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 24px;
	user-select: none;
	font-family: 'Courier New', monospace;
}

.captcha-box .refresh-btn {
	margin-left: 12px;
	cursor: pointer;
	color: #fff;
	font-size: 20px;
	transition: transform 0.3s ease;
}

.captcha-box .refresh-btn:hover {
	transform: rotate(180deg);
}

.captcha-container input[type="text"] {
	margin-top: 10px;
	padding: 8px;
	width: 60%;
	border: 2px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
}

.forgot-password {
	text-align: right;
	margin-top: 8px;
	font-size: 14px;
	padding-right: 5px;
}

.forgot-password a {
	color: #ffcc00;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.forgot-password a i {
	margin-right: 4px;
}

.forgot-password a:hover {
	color: #ffd633;
	text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
}

/* ✅ Password Input & Eye Icon */
.password-group {
	position: relative;
}

.password-group .toggle-password {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #888;
	font-size: 16px;
	z-index: 2;
}

.password-group input {
	padding-right: 38px;
}
