/* Modern Auth Pages Styles */
.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
	padding: 2rem 1rem;
	position: relative;
	overflow: hidden;
}

.auth-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(
			2px 2px at 20px 30px,
			rgba(0, 212, 255, 0.2),
			transparent
		),
		radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
		radial-gradient(1px 1px at 90px 40px, rgba(6, 255, 165, 0.3), transparent);
	background-repeat: repeat;
	background-size: 200px 200px;
	animation: sparkle 20s linear infinite;
	z-index: 1;
}

@keyframes sparkle {
	0% {
		transform: translateY(0px);
	}
	100% {
		transform: translateY(-200px);
	}
}

.auth-form {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 3rem;
	width: 100%;
	max-width: 500px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
	position: relative;
	z-index: 2;
	padding-top: 5rem !important;
}

.auth-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.auth-logo {
	width: 80px;
	height: 80px;
	background: linear-gradient(45deg, #00d4ff, #7c3aed);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	font-size: 2rem;
	color: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.auth-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.5rem;
	background: linear-gradient(45deg, #00d4ff, #06ffa5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.auth-subtitle {
	color: #b0b0b0;
	font-size: 1.1rem;
	line-height: 1.5;
}

.bonus-highlight {
	background: linear-gradient(45deg, #00d4ff, #06ffa5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 600;
	animation: pulse 2s infinite;
}

.welcome-bonus {
	background: linear-gradient(
		135deg,
		rgba(0, 212, 255, 0.1),
		rgba(6, 255, 165, 0.1)
	);
	border: 2px solid rgba(0, 212, 255, 0.3);
	border-radius: 20px;
	padding: 2rem;
	margin-bottom: 2rem;
	text-align: center;
}

.bonus-icon {
	font-size: 2.5rem;
	color: #00d4ff;
	margin-bottom: 1rem;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.75rem;
	color: #ffffff;
	font-weight: 500;
	font-size: 0.95rem;
}

.form-input {
	width: 100%;
	padding: 1.2rem 1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	color: #ffffff;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.form-input:focus {
	outline: none;
	border-color: #06ffa5;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 20px rgba(6, 255, 165, 0.2);
}

.form-input::placeholder {
	color: #888;
}

.input-with-icon {
	position: relative;
}

.input-with-icon i {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #06ffa5;
	font-size: 1.1rem;
}

.input-with-icon .form-input {
	padding-left: 3rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #06ffa5;
}

.checkbox-group label {
	color: #b0b0b0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.checkbox-group a {
	color: #06ffa5;
	text-decoration: none;
	transition: color 0.3s ease;
}

.checkbox-group a:hover {
	color: #00d4ff;
}

.forgot-password {
	text-align: right;
	margin-top: 0.5rem;
}

.forgot-password a {
	color: #06ffa5;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.forgot-password a:hover {
	color: #00d4ff;
}

.auth-button {
	width: 100%;
	padding: 1.2rem;
	background: linear-gradient(45deg, #00d4ff, #7c3aed);
	border: none;
	border-radius: 50px;
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 2rem 0;
	box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
	position: relative;
	overflow: hidden;
}

.auth-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.auth-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.auth-button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	transition: left 0.5s;
}

.auth-button:hover::before {
	left: 100%;
}

.auth-divider {
	text-align: center;
	margin: 2rem 0;
	position: relative;
	color: #888;
}

.auth-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	padding: 0 1.5rem;
	position: relative;
}

.auth-footer {
	text-align: center;
	color: #b0b0b0;
}

.auth-footer a {
	color: #06ffa5;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.auth-footer a:hover {
	color: #00d4ff;
}

.error-message {
	background: rgba(255, 82, 82, 0.15);
	border: 1px solid #ff5252;
	color: #ff8a80;
	padding: 1rem;
	border-radius: 15px;
	margin-bottom: 1rem;
	text-align: center;
	display: none;
	backdrop-filter: blur(10px);
}

.success-message {
	background: rgba(78, 205, 196, 0.15);
	border: 1px solid #4ecdc4;
	color: #4ecdc4;
	padding: 1rem;
	border-radius: 15px;
	margin-bottom: 1rem;
	text-align: center;
	display: none;
	backdrop-filter: blur(10px);
}

.password-strength {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 500;
}

.strength-weak {
	color: #ff5252;
}
.strength-medium {
	color: #ffd700;
}
.strength-strong {
	color: #4ecdc4;
}

/* Celebration Popup Styles */
.celebration-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	animation: fadeIn 0.5s ease;
}

.celebration-popup {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 2px solid #ffd700;
	border-radius: 25px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	position: relative;
	animation: bounceIn 0.8s ease-out;
}

.celebration-content {
	padding: 3rem 2rem;
	text-align: center;
	position: relative;
	z-index: 2;
}

.celebration-icon {
	font-size: 4rem;
	color: #ffd700;
	margin-bottom: 1rem;
	animation: trophy 2s ease-in-out infinite;
}

.celebration-title {
	font-size: 2.5rem;
	color: #ffffff;
	margin-bottom: 1rem;
	background: linear-gradient(45deg, #ffd700, #ff6b6b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: glow 3s ease-in-out infinite;
}

.coins-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 2rem 0;
	padding: 1.5rem;
	background: rgba(255, 215, 0, 0.1);
	border-radius: 20px;
	border: 2px solid rgba(255, 215, 0, 0.3);
}

.coins-display i {
	font-size: 2.5rem;
	color: #ffd700;
	animation: coinSpin 3s linear infinite;
}

.coins-amount {
	font-size: 2rem;
	font-weight: bold;
	background: linear-gradient(45deg, #ffd700, #4ecdc4);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.celebration-message {
	color: #b0b0b0;
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.celebration-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.loader-bar {
	width: 250px;
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	position: relative;
	overflow: hidden;
}

.loader-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ff6b6b, #ffd700);
	border-radius: 10px;
	animation: loading 3.5s ease-out forwards;
}

.loader-text {
	color: #888;
	font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3) translateY(-100px);
	}
	50% {
		opacity: 1;
		transform: scale(1.05) translateY(0);
	}
	70% {
		transform: scale(0.95) translateY(0);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes trophy {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-10px) rotate(5deg);
	}
}

@keyframes glow {
	0%,
	100% {
		filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
	}
	50% {
		filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
	}
}

@keyframes coinSpin {
	from {
		transform: rotateY(0deg);
	}
	to {
		transform: rotateY(360deg);
	}
}

@keyframes loading {
	to {
		width: 100%;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.auth-form {
		padding: 2rem 1.5rem;
		margin: 1rem;
		max-width: none;
	}

	.auth-logo {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}

	.auth-title {
		font-size: 1.8rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.celebration-content {
		padding: 2rem 1.5rem;
	}

	.celebration-title {
		font-size: 2rem;
	}

	.celebration-icon {
		font-size: 3rem;
	}

	.coins-display {
		flex-direction: column;
		gap: 0.5rem;
	}

	.coins-display i {
		font-size: 2rem;
	}

	.coins-amount {
		font-size: 1.5rem;
	}

	.loader-bar {
		width: 200px;
	}
}

@media (max-width: 480px) {
	.auth-container {
		padding: 1rem;
	}

	.auth-form {
		padding: 1.5rem 1rem;
	}

	.auth-title {
		font-size: 1.5rem;
	}

	.form-input {
		padding: 1rem;
	}

	.auth-button {
		padding: 1rem;
		font-size: 1rem;
	}
}
