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

body {
	font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1E1F22;
	padding: 1rem;
}

.container {
	background: #313338;
	border-radius: 8px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
	padding: 2rem;
	max-width: 480px;
	width: 100%;
	text-align: center;
	display: grid;
	grid-template-areas:
		"header"
		"title"
		"subtitle"
		"turnstile"
		"error";
	grid-template-rows: auto auto auto auto auto;
}

.server-header {
	grid-area: header;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 1rem;
}

.server-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1E1F22;
}

.server-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.server-icon svg {
	width: 48px;
	height: 48px;
	fill: #5865F2;
}

.server-name {
	margin-top: 0.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #F2F3F5;
}

h1 {
	grid-area: title;
	font-size: 1.5rem;
	font-weight: 600;
	color: #F2F3F5;
	margin-bottom: 0.5rem;
}

p {
	grid-area: subtitle;
	color: #B5BAC1;
	margin-bottom: 1.5rem;
	line-height: 1.4;
	font-size: 1rem;
}

.turnstile-container {
	grid-area: turnstile;
	display: flex;
	justify-content: center;
	min-height: 65px;
}

.turnstile-container iframe {
	border-radius: 8px !important;
}

.status {
	grid-area: error;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.875rem;
	min-height: 2.5rem;
	visibility: hidden;
}

.status.error {
	visibility: visible;
	background: rgba(237, 66, 69, 0.1);
	color: #ED4245;
	border: 1px solid rgba(237, 66, 69, 0.3);
}

.status.success {
	visibility: visible;
	background: rgba(87, 242, 135, 0.1);
	color: #57F287;
	border: 1px solid rgba(87, 242, 135, 0.3);
}

.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: #B5BAC1;
	font-size: 0.875rem;
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #4E5058;
	border-top-color: #5865F2;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.hidden {
	display: none !important;
}
