/* ========================================
   Experiment Page Styles
   ======================================== */

.experiment-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
	padding: 10rem 2rem 4rem;
}

.experiment-container {
	display: flex;
	gap: 4rem;
	max-width: 1100px;
	width: 100%;
	align-items: center;
}

/* ---- Auth Card ---- */
.auth-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 3rem;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 2.5rem;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
	flex: 1;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	padding: 1rem 0;
	cursor: pointer;
	transition: color 0.3s, border-bottom 0.3s;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.auth-tab.active {
	color: #fff;
	border-bottom-color: crimson;
}

.auth-tab:hover {
	color: #fff;
}

/* ---- Forms ---- */
.auth-form h2 {
	color: #fff;
	font-size: 2.4rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.auth-subtitle {
	color: rgba(255, 255, 255, 0.6) !important;
	font-size: 1.2rem !important;
	margin-bottom: 2rem !important;
}

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

.form-group label {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.2rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	letter-spacing: 0.05rem;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 1rem 1.2rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 1.3rem;
	transition: border-color 0.3s, box-shadow 0.3s;
	outline: none;
}

.form-group input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus {
	border-color: crimson;
	box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.form-group select option {
	background: #1a1a2e;
	color: #fff;
}

.form-row {
	display: flex;
	gap: 1.2rem;
}

.form-group.half {
	flex: 1;
}

.metadata-heading {
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	margin: 2rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.required {
	color: crimson;
}

.headphone-warning {
	background: rgba(220, 20, 60, 0.15);
	border: 1px solid rgba(220, 20, 60, 0.4);
	border-radius: 8px;
	padding: 1rem 1.2rem;
	color: #ff6b6b;
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1.6rem;
	text-align: center;
}

/* Checkbox */
.checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
	width: 1.6rem;
	height: 1.6rem;
	accent-color: crimson;
}

.checkbox-group label {
	margin-bottom: 0;
	font-size: 1.2rem;
}

/* Error Message */
.form-error {
	color: #ff6b6b;
	font-size: 1.2rem;
	min-height: 1.8rem;
	margin-bottom: 1rem;
	font-weight: 500;
}

/* Submit Button */
.btn-primary {
	width: 100%;
	padding: 1.2rem;
	background: crimson;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s, transform 0.15s;
}

.btn-primary:hover {
	background: #b8001f;
}

.btn-primary:active {
	transform: scale(0.98);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hidden {
	display: none !important;
}

/* ---- Experiment Intro ---- */
.experiment-intro {
	flex: 1;
	max-width: 540px;
}

.experiment-title {
	color: #fff;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.experiment-title span {
	color: crimson;
}

.experiment-intro p {
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 1.6rem !important;
	line-height: 2.6rem !important;
	margin-bottom: 2rem;
}

.experiment-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.method-tag {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: rgba(220, 20, 60, 0.15);
	border: 1px solid rgba(220, 20, 60, 0.3);
	border-radius: 20px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.05rem;
}

/* ---- Experiment UI ---- */
.experiment-ui {
	width: 100%;
	display: flex;
	justify-content: center;
}

.experiment-panel {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 3rem;
	max-width: 500px;
	width: 100%;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.trial-progress-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.3rem;
	font-weight: 500;
	margin-bottom: 0.8rem;
	letter-spacing: 0.05rem;
}

.trial-progress {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	appearance: none;
	-webkit-appearance: none;
	margin-bottom: 2rem;
}

.trial-progress::-webkit-progress-bar {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

.trial-progress::-webkit-progress-value {
	background: crimson;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.experiment-play-area {
	margin-bottom: 2rem;
}

.angle-canvas {
	cursor: crosshair;
	border-radius: 50%;
	display: block;
	margin: 0 auto 1rem;
}

.angle-instruction {
	color: rgba(255, 255, 255, 0.5) !important;
	font-size: 1.1rem !important;
	font-style: italic;
}

.experiment-controls {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.btn-play {
	flex: 1;
	padding: 1.2rem;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
}

.btn-play:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
}

.btn-play:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-stop {
	padding: 1.2rem 1.6rem;
	background: rgba(220, 20, 60, 0.2);
	color: #ff6b6b;
	border: 1px solid rgba(220, 20, 60, 0.4);
	border-radius: 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.btn-stop:hover {
	background: rgba(220, 20, 60, 0.35);
}

.trial-feedback {
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.2rem;
	min-height: 1.8rem;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 768px) {
	.experiment-container {
		flex-direction: column-reverse;
		gap: 3rem;
	}

	.auth-card {
		max-width: 100%;
	}

	.experiment-title {
		font-size: 3rem;
		text-align: center;
	}

	.experiment-intro p {
		text-align: center;
	}

	.experiment-methods {
		justify-content: center;
	}

	.form-row {
		flex-direction: column;
		gap: 0;
	}

	.experiment-controls {
		flex-direction: column;
	}
}
