form {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;

	input:not([type="file"]) {
		background-color: transparent;
		color: var(--clr-text);
		border: 1px solid var(--clr-border);
		border-radius: var(--radius);
		transition: border-color 0.2s ease;
		outline: none;
	}

	.form-group {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;

		label {
			font-weight: 500;
		}

		.input-wrapper {
			position: relative;
			display: flex;
			align-items: center;
			background-color: var(--clr-bg);
			overflow: hidden;

			&:has(input:focus) input {
				border-color: var(--clr-accent);
			}

			svg {
				width: 18px;
				height: 18px;
			}

			button {
				position: absolute;
				right: .2rem;
				padding: .6rem;
				border-radius: 100vh;
				border-color: transparent;
			}

			.input-icon {
				position: absolute;
				left: 1rem;
				pointer-events: none;
				transition: all .2s ease-in-out;
			}

			input {
				width: 100%;
				padding: 1rem;
				transition: all .2s ease-in-out;
			}

			&:has(input:focus),
			&:has(input:not(:placeholder-shown)) {
				input {
					padding-left: 1rem;
				}

				.input-icon {
					left: -1.4rem;
				}
			}

			&:has(.input-icon) input {
				padding-left: 3rem;
			}

			&:has(.b-btn) input {
				padding-right: 3rem;
			}
		}

		.error-message {
			color: var(--error);
			display: none;
		}

		.error-message.show {
			display: block;
		}
	}

	.checkbox-label {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		cursor: pointer;

		.checkbox {
			width: 1rem;
			height: 1rem;
			border-radius: 0.25rem;
			border: 1px solid var(--border);
			cursor: pointer;
		}
	}

	.text-link {
		background: none;
		border: none;
		color: var(--clr-accent);
		font-size: 0.875rem;
		cursor: pointer;
		text-decoration: none;
		transition: color 0.2s ease;
	}

	.text-link:hover {
		color: var(--accent);
	}
}

.b-dropdown {
	position: relative;

	button {
		width: 100%;
		padding: 1rem;
		justify-content: space-between;
		border: 1px solid var(--clr-border);

		&:focus {
			outline: none;
			border-color: var(--clr-accent);
			box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
		}

		& svg {
			width: 24px;
			height: 24px;
			transition: transform 0.2s ease;
		}

		&.open svg {
			transform: rotate(180deg);
		}
	}

	.b-dropdown-menu {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		right: 0;
		background-color: var(--clr-bg-2);
		border: 1px solid var(--clr-border-2);
		border-radius: 0.5rem;
		max-height: 250px;
		overflow-y: auto;
		z-index: 5;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all 0.2s ease-in-out;

		&.open {
			opacity: 1;
			visibility: visible;
			transform: translateY(0);
		}
	}

	.dropdown-search {
		position: sticky;
		top: 0;
		padding: 0.75rem;
		background-color: var(--clr-bg-2);
		border-bottom: 1px solid var(--clr-border);

		input {
			width: 100%;
			padding: 0.5rem;
			background-color: var(--clr-bg);
			border: 1px solid var(--clr-border);
			border-radius: 0.25rem;
			color: var(--clr-text);
			font-size: 0.875rem;
		}

		input:focus {
			outline: none;
			border-color: var(--clr-accent);
		}
	}

	.dropdown-option {
		padding: 0.75rem 1rem;
		cursor: pointer;
		transition: background-color 0.15s ease;
		font-size: 0.875rem;

		&:hover {
			background-color: rgba(52, 211, 153, 0.1);
		}

		&.selected {
			background-color: rgba(52, 211, 153, 0.15);
			color: var(--clr-accent);
		}
	}
}

/* Login Page Styles */
.auth-box {
	margin: 3rem auto;

	.auth-card {
		max-width: 28rem;
		width: 100%;
		background-color: var(--clr-bg-2);
		border: 1px solid var(--clr-border);
		border-radius: var(--radius);
		padding: 2rem;
		box-shadow: 0 0 5px rgba(34, 211, 238, 0.3);
	}

	h1,
	h3,
	p {
		text-align: center;
	}

	.resend-container {
		text-align: center;
		font-size: 0.875rem;
		color: var(--clr-muted);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
	}
}

.space-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.otp-inputs {
	display: flex;
	gap: 0.5rem;
	justify-content: center;

	input {
		width: 3.6rem;
		height: 3.6rem;
		text-align: center;
		font-size: 1.5rem;
		font-family: "Courier New", Courier, monospace;
		background-color: var(--clr-bg) !important;

		&:focus {
			outline: none;
			border-color: var(--clr-accent);
		}
	}
}

.success-card {
	text-align: center;

	.success-icon {
		width: 4rem;
		height: 4rem;
		color: var(--clr-accent);
		margin: 0 auto 1rem;
	}

	.success-title {
		font-size: 1.5rem;
		font-family: "Courier New", Courier, monospace;
		margin-bottom: 0.5rem;
	}

	.success-description {
		color: var(--clr-muted);
	}
}

.profile-header {
	text-align: center;
	margin-bottom: 3rem;
}

.profile-picture-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--clr-border);
}

.form-actions {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--clr-border);

	>button {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.profile-card {
		padding: 2rem 1.5rem;
	}

	.form-actions {
		flex-direction: column;
	}
}

.form-group:has(#id_captcha) .input-wrapper {
	background-color: transparent;
}