.authn-provider {
	display: flex;
	flex-direction: column;

	&__header {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-bottom: 36px;
	}

	&__title {
		margin: 0;
		color: var(--l1-foreground);
		font-family: 'Inter', sans-serif;
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
	}

	&__description {
		margin: 0;
		color: var(--l2-foreground);
		font-family: 'Inter', sans-serif;
		font-size: 14px;
		font-weight: 400;
		line-height: 20px;

		a {
			color: var(--accent-primary);
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}

	&__columns {
		display: grid;
		grid-template-columns: 0.9fr 1fr;
		gap: 24px;
	}

	&__left {
		display: flex;
		flex-direction: column;
	}

	&__right {
		border-left: 1px solid var(--l1-border);
		padding-left: 24px;
		display: flex;
		flex-direction: column;
	}

	&__field-group {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-bottom: 12px;
	}

	&__label {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--l1-foreground);
	}

	&__form-item {
		margin-bottom: 0 !important;
	}

	&__checkbox-row {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 12px;
	}

	input,
	textarea {
		height: 32px;
		background: var(--l2-background) !important;
		border: 1px solid var(--l2-border) !important;
		border-radius: 2px;
		color: var(--l2-foreground) !important;

		&::placeholder {
			color: var(--l2-foreground) !important;
			opacity: 1;
		}

		&:hover {
			border-color: var(--l2-border) !important;
		}

		&:focus,
		&:focus-visible {
			border-color: var(--primary) !important;
			box-shadow: none !important;
			outline: none;
		}
	}

	textarea {
		height: auto;
	}
	&__textarea {
		min-height: 60px !important;
		max-height: 200px;
		resize: vertical;
		background: var(--l2-background) !important;
		border: 1px solid var(--l2-border) !important;
		border-radius: 2px;
		color: var(--l2-foreground) !important;
		font-family: 'SF Mono', monospace;
		font-size: 12px;
		line-height: 18px;

		&::placeholder {
			color: var(--l2-foreground) !important;
			font-family: Inter, sans-serif;
		}

		&:hover {
			border-color: var(--l2-border) !important;
		}

		&:focus,
		&:focus-visible {
			border-color: var(--primary) !important;
			box-shadow: none !important;
			outline: none;
		}
	}

	button[role='checkbox'] {
		border: 1px solid var(--l2-foreground) !important;
		border-radius: 2px;

		&[data-state='checked'] {
			background-color: var(--primary) !important;
			border-color: var(--primary) !important;
		}
	}

	&__collapse {
		background: transparent !important;

		.ant-collapse-item {
			border: none !important;
		}

		.ant-collapse-header {
			padding: 0 !important;
		}

		.ant-collapse-content {
			border-top: none !important;
			background: transparent !important;
		}

		.ant-collapse-content-box {
			padding: 12px 0 0 24px !important;
		}
	}

	&__collapse-header {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		cursor: pointer;
		position: relative;
		width: 100%;

		svg {
			margin-top: 2px;
			color: var(--l3-foreground);
			flex-shrink: 0;
		}
	}

	&__collapse-header-text {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	&__section-title {
		margin: 0;
		color: var(--l1-foreground);
	}

	&__section-description {
		margin: 0;
		color: var(--l3-foreground);
	}

	&__group-content {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	&__group-fields {
		display: flex;
		flex-direction: column;
		gap: 24px;
		max-height: 45vh;
		overflow-y: auto;
		padding-right: 4px;

		.authn-provider__field-group,
		.authn-provider__checkbox-row {
			margin-bottom: 0;
		}
		&::-webkit-scrollbar {
			width: 4px;
		}

		&::-webkit-scrollbar-track {
			background: transparent;
		}

		&::-webkit-scrollbar-thumb {
			background: var(--l2-foreground);
			border-radius: 4px;

			&:hover {
				background: var(--l2-foreground);
			}
		}

		scrollbar-width: thin;
		scrollbar-color: var(--l2-foreground) transparent;
	}

	&__callout-wrapper {
		display: flex;
	}

	.callout {
		margin-top: 16px;
	}
}

.saml {
	display: flex;
	flex-direction: column;

	.ant-form-item {
		margin-bottom: 12px !important;
	}

	.header {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-bottom: 12px;

		.title {
			font-weight: bold;
		}
	}

	.field {
		.ant-row {
			display: flex;
			flex-direction: row;
			align-items: center;
			flex-flow: nowrap;

			.ant-col {
				display: flex;
				flex-grow: 1;
				width: 100%;
				padding: 0px;
			}
		}
	}

	.callout {
		margin-top: 16px;
	}
}
