/* ========================================================================
   TEC Login/Signup Modal Styles
   ======================================================================== */

.tec-modal {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	left: 0;
	overflow-y: auto;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999;

	&.tec-modal--hidden {
		display: none;
	}

	& .tec-modal__overlay {

		/* stylelint-disable */
		backdrop-filter: blur(2px);
		background: rgba(0, 77, 136, 0.74);
		/* stylelint-enable */

		height: 100%;
		left: 0;
		position: fixed;
		top: 0;
		width: 100%;
		z-index: -1;
	}

	& .tec-modal__content {
		background: var(--white);
		border: 1px solid var(--light-grey-5);
		border-radius: 5px;
		box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
		margin: auto;
		max-height: calc(100vh - 40px);
		max-width: 768px;
		overflow-y: auto;
		padding: 40px 20px;
		position: relative;
		width: calc(100vw - 40px);
		z-index: 10000;

		/* Scroll Bar */
		&::-webkit-scrollbar {
			background: none !important;
			border: none !important;
			border-radius: 0 !important;
			width: 6px !important;
		}
		
		/* Track */
		&::-webkit-scrollbar-track {
			background: var(--light-teal) !important;
			border: none !important;
			border-radius: 20px !important;
		}
		
		/* Handle */
		&::-webkit-scrollbar-thumb {
			background: var(--dark-blue-2) !important;
			border: none !important;
			border-radius: 20px !important;
		}

		& .tec-modal__close {
			align-items: center;
			background: var(--dark-blue-2);
			border: none;
			border-radius: 100%;
			cursor: pointer;
			display: flex;
			height: 30px;
			justify-content: center;
			padding: 0;
			position: absolute;
			right: 20px;
			top: 20px;
			width: 30px;

			&::after {
				content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M14.0858 4.69531L4.69531 14.0858' stroke-width='2.65602' stroke-linecap='round' stroke='white'/%3E%3Cpath d='M14.0882 14.083L4.69775 4.69255' stroke-width='2.65602' stroke-linecap='round' stroke='white'/%3E%3C/svg%3E");
				line-height: 0;
				transition: all 0.3s ease-in-out;
			}
			
			&:focus,
			&:hover {

				&::after {
					transform: scale(1.2);
				}
			}
		}

		& .tec-modal__disclaimer {
			background: var(--light-teal-4);
			margin: 0 0 15px;
			padding: 15px;

			&.--laptop {
				display: none;
			}

			& .tec-modal__disclaimer-title {
				align-items: center;
				color: var(--dark-blue-2);
				display: flex;
				font-size: 20px;
				font-weight: var(--fw-black);
				gap: 10px;
				line-height: normal;
				margin: 0 0 10px;

				&::before {
					content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='20' viewBox='0 0 21 20' fill='none'%3E%3Cpath d='M7.13825 19.7305L5.35375 16.723L1.96525 15.9805L2.296 12.4922L0 9.86525L2.296 7.23825L1.96525 3.75L5.35375 3.0075L7.13825 0L10.3268 1.35375L13.5153 0L15.2998 3.0075L18.6883 3.75L18.3575 7.23825L20.6535 9.86525L18.3575 12.4922L18.6883 15.9805L15.2998 16.723L13.5153 19.7305L10.3268 18.3768L7.13825 19.7305ZM10.8998 14.3615C11.0563 14.205 11.1345 14.0139 11.1345 13.7883C11.1345 13.5626 11.0563 13.3716 10.8998 13.2153C10.7434 13.0589 10.5524 12.9808 10.3268 12.9808C10.1011 12.9808 9.91008 13.0589 9.75375 13.2153C9.59725 13.3716 9.519 13.5626 9.519 13.7883C9.519 14.0139 9.59725 14.205 9.75375 14.3615C9.91008 14.5178 10.1011 14.596 10.3268 14.596C10.5524 14.596 10.7434 14.5178 10.8998 14.3615ZM9.57675 10.9422H11.0768V4.94225H9.57675V10.9422Z' fill='%230077CD'/%3E%3C/svg%3E");
					line-height: 0;
					margin-top: -5px;
				}
			}

			& .tec-modal__disclaimer-text {
				color: var(--black);
				font-size: 14px;
				font-weight: var(--fw-reg);
				line-height: 22.4px;
				margin: 0;
			}

			& .tec-modal__disclaimer-content-wrapper {
				background: var(--light-teal);
				border-radius: 5px;
				margin-top: 25px;
				padding: 15px;

				& .tec-modal__disclaimer-content {
					color: var(--dark-blue-2);
					font-size: 14px;
					font-weight: var(--fw-reg);
					line-height: 22.4px;
					margin: 0;

					& strong {
						font-size: 16px;
						font-weight: var(--fw-extrabold);
					}
				}

				& .tec-modal__disclaimer-content + .tec-modal__disclaimer-content {
					margin-top: 15px;
				}
			}
		}

		& .tec-modal__header {
			
			& .tec-modal__heading[hidden] {
				display: none;
			}

			& .tec-modal__title {
				background: linear-gradient(90deg, var(--light-blue) 0%, var(--teal-2) 100%);
				-webkit-background-clip: text;
				background-clip: text;
				font-size: 34px;
				font-weight: var(--fw-black);
				line-height: 38.76px;
				margin: 0 40px 10px 0;
				-webkit-text-fill-color: transparent;
			}

			& .tec-modal__subtitle {
				color: var(--black);
				font-size: 16px;
				font-weight: var(--fw-reg);
				line-height: 24px;
				margin: 0;
			}
		}

		& .tec-modal__body {
			margin: 25px 0 0;

			& .tec-tabs {
				display: flex;
				flex-direction: column;

				& .tec-tabs__nav {
					background: var(--light-teal-4);
					border-radius: 50px;
					display: flex;
					gap: 0;
					margin-bottom: 25px;

					& .tec-tabs__button {
						background: none;
						border: none;
						border-radius: 50px;
						color: var(--black);
						font-size: 14px;
						font-weight: var(--fw-reg);
						height: 50px;
						line-height: normal;
						padding: 0;
						text-align: center;
						width: 50%;

						&:focus,
						&:hover {
							cursor: pointer;
						}

						&.tec-tabs__button--active {
							background: linear-gradient(96deg, var(--light-blue) 6.74%, var(--dark-blue) 100.09%);
							color: var(--white);
							font-weight: var(--fw-extrabold);
						}
					}
				}

				& .tec-tabs__content {
					display: none;

					&.tec-tabs__content--active {
						display: block;
					}

					& .tec-form {
						display: flex;
						flex-direction: column;
						gap: 15px;

						& .tec-form__row {
							align-items: center;
							display: flex;
							justify-content: space-between;
						}

						& .tec-form__group {
							display: flex;
							flex-direction: column;
							gap: 5px;
							position: relative;
						}

						& .tec-form__group--checkbox {
							align-items: center;
							flex-direction: row;
							gap: 10px;
						}

						& .tec-form__label {
							color: var(--dark-grey-2);
							font-size: 14px;
							font-weight: var(--fw-reg);
							line-height: normal;
						}

						& .tec-form__label--checkbox {
							color: var(--dark-grey-2);
							cursor: pointer;
							font-size: 14px;
							font-weight: var(--fw-reg);
							line-height: normal;
							margin: 2px 0 0 0;
						}

						& .tec-form__required {
							color: var(--light-grey-2);
						}

						& .tec-form__input {
							border: 1px solid var(--black);
							border-radius: 10px;
							color: var(--light-grey-6);
							font-size: 14px;
							font-weight: var(--fw-reg);
							line-height: normal;
							padding: 14px 25px 12px;

							&::placeholder {
								color: var(--light-grey-6);
								font-size: 14px;
								font-weight: var(--fw-reg);
								line-height: normal;
							}

							&#login-username,
							&#login-password,
							&#signup-email,
							&#signup-email-confirm,
							&#signup-password,
							&#signup-password-confirm {
								padding-left: 50px;
							}
						}

						& .icon--email,
						& .icon--password {
							bottom: 10px;
							left: 20px;
							position: absolute;
						}

						& .icon--password {
							bottom: 8px;
						}

						& .tec-form__checkbox {
							appearance: none;
							border: 2px solid var(--black);
							border-radius: 2px;
							cursor: pointer;
							height: 14px;
							width: 14px;

							&:checked {
								background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.375 14.675L15.8 7.225L13.725 5.15L8.375 10.475L5.825 7.95L3.75 10.025L8.375 14.675ZM3.15 19.7C2.26667 19.7 1.52083 19.3958 0.9125 18.7875C0.304167 18.1792 0 17.4333 0 16.55V3.15C0 2.26667 0.304167 1.52083 0.9125 0.9125C1.52083 0.304167 2.26667 0 3.15 0H16.55C17.4333 0 18.1792 0.304167 18.7875 0.9125C19.3958 1.52083 19.7 2.26667 19.7 3.15V16.55C19.7 17.4333 19.3958 18.1792 18.7875 18.7875C18.1792 19.3958 17.4333 19.7 16.55 19.7H3.15Z' fill='%230077CD'/%3E%3C/svg%3E%0A");
								background-position: center;
								background-repeat: no-repeat;
								background-size: 130%;
								border-color: var(--light-blue);
							}
						}

						& .tec-form__link {
							color: var(--dark-grey-2);
							font-size: 14px;
							font-weight: var(--fw-extrabold);
							line-height: normal;

							& .tec-form__link-text {
								color: var(--dark-grey-2);
								font-size: 14px;
								font-weight: var(--fw-extrabold);
								line-height: normal;
								text-decoration: none;

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

						& .tec-terms-content {
							background: var(--light-teal);
							border-radius: 10px;
							padding: 20px;

							& p {
								color: var(--black);
								font-size: 14px;
								font-weight: var(--fw-reg);
								line-height: 21px;
								margin: 0;
							}
						}

						& .tec-form__actions {
							display: flex;

							& .tec-form__button {
								align-items: center;
								background: linear-gradient(90deg, var(--light-blue) 0%, var(--dark-blue) 99.85%);
								border: none;
								border-radius: 50px;
								color: var(--white);
								display: flex;
								font-size: 16px;
								font-weight: var(--fw-extrabold);
								gap: 15px;
								height: 50px;
								justify-content: center;
								line-height: 16px;
								padding: 2px 30px 0;
								text-align: center;
								text-decoration: none;
								transition: all 0.3s ease-in-out;
								width: fit-content;

								&::after {
									content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M0.821777 12.506L6.66388 6.66388L0.821777 0.821777' stroke='white' stroke-width='1.64309' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
									margin-bottom: -2px;
								}

								&:hover,
								&:focus {
									background: linear-gradient(90deg, var(--light-blue) 0%, var(--teal-2) 99.85%);
									cursor: pointer;
									gap: 25px;
								}
							}
						}

						& .tec-form__message {
							border-radius: 10px;
							font-size: 13px;
							line-height: normal;
							padding: 20px;

							/* stylelint-disable */
							&.tec-form__message--error {
								background-color: #fee2e2;
								border: 1px solid #fecaca;
								color: #991b1b;
							}

							&.tec-form__message--success {
								background-color: #dcfce7;
								border: 1px solid #bbf7d0;
								color: #166534;
							}

							&.tec-form__message--loading {
								background-color: #dbeafe;
								border: 1px solid #bfdbfe;
								color: #075985;
							}
							/* stylelint-enable */
						}
					}
				}
			}
		}
	}
}

/* Loading State */
.tec-form__button--loading {
	color: transparent;
	position: relative;
}

.tec-form__button--loading::after {
	animation: tec-spin 0.8s linear infinite;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: var(--white);
	content: "";
	height: 14px;
	left: 50%;
	margin-left: -7px;
	margin-top: -7px;
	position: absolute;
	top: 50%;
	width: 14px;
}

@keyframes tec-spin {

	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media screen and (min-width: 1280px) {

	.tec-modal {

		& .tec-modal__content {
			display: flex;
			gap: 40px;
			max-height: fit-content;
			max-width: 1140px;
			overflow-y: hidden;
			padding: 50px;
			width: 1140px;

			& .tec-modal__close {
				right: 25px;
				top: 25px;
			}

			& .tec-modal__disclaimer {
				border-radius: 5px 40px;
				height: fit-content;
				margin: 0;
				padding: 35px 30px;
				width: 390px;

				&.--laptop {
					display: block;
				}

				&.--mobile {
					display: none;
				}

				& .tec-modal__disclaimer-content-wrapper {
					padding: 20px;
				}
			}

			& .tec-modal__content-inner {
				width: calc(100% - 390px - 40px);
			}

			& .tec-modal__header {

				& .tec-modal__title {
					font-size: 38px;
					line-height: 45.6px;
				}
			}

			& .tec-modal__body {

				& .tec-tabs {

					& .tec-tabs__nav {

						& .tec-tabs__button {
							font-size: 15px;
						}
					}

					& .tec-tabs__content {
						max-height: 390px;
						overflow-y: auto;
						padding-right: 20px;

						/* Scroll Bar */
						&::-webkit-scrollbar {
							background: none !important;
							border: none !important;
							border-radius: 0 !important;
							width: 6px !important;
						}
						
						/* Track */
						&::-webkit-scrollbar-track {
							background: var(--light-teal) !important;
							border: none !important;
							border-radius: 20px !important;
						}
						
						/* Handle */
						&::-webkit-scrollbar-thumb {
							background: var(--dark-blue-2) !important;
							border: none !important;
							border-radius: 20px !important;
						}
					}
				}
			}
		}
	}
}
