/* HL2GO Frontend Auth Styles */

/* Auth Buttons (when not logged in) */
.hl2go-auth-buttons {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-left: auto;
}

.hl2go-btn-login,
.hl2go-btn-register {
	background: transparent;
	border: 2px solid var(--primary-color, #00d4ff);
	color: var(--primary-color, #00d4ff);
	padding: 0.5rem 1.5rem;
	border-radius: 4px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Orbitron', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.9rem;
}

.hl2go-btn-login:hover,
.hl2go-btn-register:hover {
	background: var(--primary-color, #00d4ff);
	color: #0a0e27;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* User Menu (when logged in) */
.hl2go-user-menu-item {
	position: relative;
	margin-left: auto;
}

.hl2go-user-menu {
	position: relative;
}

.hl2go-user-menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: transparent;
	border: 2px solid var(--primary-color, #00d4ff);
	color: var(--text-secondary, #b0b0b0);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Orbitron', sans-serif;
}

.hl2go-user-menu-toggle:hover {
	background: rgba(0, 212, 255, 0.1);
	border-color: var(--primary-color, #00d4ff);
	color: var(--primary-color, #00d4ff);
}

.hl2go-user-avatar {
	display: flex;
	align-items: center;
}

.hl2go-user-avatar img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--primary-color, #00d4ff);
}

.hl2go-user-name {
	font-weight: 500;
	font-size: 0.9rem;
}

.hl2go-user-arrow {
	font-size: 0.7rem;
	transition: transform 0.3s ease;
}

.hl2go-user-menu.active .hl2go-user-arrow {
	transform: rotate(180deg);
}

/* User Dropdown */
.hl2go-user-dropdown {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	background: rgba(10, 14, 39, 0.98);
	border: 2px solid var(--primary-color, #00d4ff);
	border-radius: 4px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hl2go-user-menu.active .hl2go-user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hl2go-user-dropdown li {
	margin: 0;
}

.hl2go-user-dropdown a {
	display: block;
	padding: 0.75rem 1.5rem;
	color: var(--text-secondary, #b0b0b0);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.hl2go-user-dropdown a:hover {
	background: rgba(0, 212, 255, 0.1);
	color: var(--primary-color, #00d4ff);
}

.hl2go-user-dropdown .hl2go-logout-link {
	border-top: 1px solid rgba(0, 212, 255, 0.2);
	margin-top: 0.5rem;
	padding-top: 0.75rem;
}

/* Auth Modals */
.hl2go-auth-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hl2go-auth-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.hl2go-auth-modal-content {
	position: relative;
	background: rgba(10, 14, 39, 0.98);
	border: 2px solid var(--primary-color, #00d4ff);
	border-radius: 8px;
	padding: 2rem;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hl2go-auth-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	color: var(--text-secondary, #b0b0b0);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s ease;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hl2go-auth-modal-close:hover {
	color: var(--primary-color, #00d4ff);
}

.hl2go-auth-modal-content h2 {
	margin: 0 0 1.5rem 0;
	font-family: 'Orbitron', sans-serif;
	color: var(--primary-color, #00d4ff);
	font-size: 1.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Auth Forms */
.hl2go-auth-form {
	margin-top: 1.5rem;
}

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

.hl2go-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-secondary, #b0b0b0);
	font-weight: 500;
	font-size: 0.9rem;
}

.hl2go-form-group label .required {
	color: var(--primary-color, #00d4ff);
}

.hl2go-form-group input[type="text"],
.hl2go-form-group input[type="email"],
.hl2go-form-group input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 4px;
	color: var(--text-primary, #ffffff);
	font-size: 1rem;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.hl2go-form-group input[type="text"]:focus,
.hl2go-form-group input[type="email"]:focus,
.hl2go-form-group input[type="password"]:focus {
	outline: none;
	border-color: var(--primary-color, #00d4ff);
	box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hl2go-form-group input[type="checkbox"] {
	margin-right: 0.5rem;
	accent-color: var(--primary-color, #00d4ff);
}

.hl2go-turnstile-container {
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: center;
}

.hl2go-turnstile-container .cf-turnstile {
	margin: 0 auto;
}

.hl2go-form-messages {
	margin-bottom: 1rem;
	min-height: 20px;
}

.hl2go-form-messages .hl2go-message {
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.hl2go-form-messages .hl2go-message-success {
	background: rgba(0, 255, 0, 0.1);
	border: 1px solid rgba(0, 255, 0, 0.3);
	color: #00ff00;
}

.hl2go-form-messages .hl2go-message-error {
	background: rgba(255, 0, 0, 0.1);
	border: 1px solid rgba(255, 0, 0, 0.3);
	color: #ff4444;
}

.hl2go-btn-submit {
	width: 100%;
	padding: 0.75rem;
	background: var(--primary-color, #00d4ff);
	color: #0a0e27;
	border: none;
	border-radius: 4px;
	font-weight: 700;
	font-family: 'Orbitron', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;
}

.hl2go-btn-submit:hover {
	background: #00b8e6;
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
	transform: translateY(-2px);
}

.hl2go-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.hl2go-auth-switch {
	margin-top: 1.5rem;
	text-align: center;
	color: var(--text-secondary, #b0b0b0);
	font-size: 0.9rem;
}

.hl2go-auth-switch a {
	color: var(--primary-color, #00d4ff);
	text-decoration: none;
	transition: all 0.3s ease;
}

.hl2go-auth-switch a:hover {
	text-decoration: underline;
}

/* OAuth Buttons */
.hl2go-oauth-buttons {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hl2go-btn-oauth {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	font-family: 'Orbitron', sans-serif;
}

.hl2go-btn-oauth svg {
	flex-shrink: 0;
}

.hl2go-btn-discord {
	background: #5865F2;
	color: #ffffff;
	border-color: #5865F2;
}

.hl2go-btn-discord:hover {
	background: #4752C4;
	border-color: #4752C4;
	box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
	transform: translateY(-2px);
}

.hl2go-btn-google {
	background: #ffffff;
	color: #1a1a1a;
	border-color: #dadce0;
}

.hl2go-btn-google:hover {
	background: #f8f9fa;
	border-color: #dadce0;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.hl2go-auth-buttons {
		gap: 0.5rem;
		margin-left: 1rem;
	}
	
	.hl2go-btn-login,
	.hl2go-btn-register {
		padding: 0.4rem 1rem;
		font-size: 0.8rem;
	}
	
	.hl2go-user-menu-toggle {
		padding: 0.4rem 0.75rem;
	}
	
	.hl2go-user-name {
		display: none;
	}
	
	.hl2go-user-dropdown {
		right: 0;
		left: auto;
		min-width: 180px;
	}
	
	.hl2go-auth-modal-content {
		padding: 1.5rem;
		width: 95%;
	}
}

