/*
 * Copyright (c) 2022 Ford Motor Company
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use '../../Styles/main';

.auth-template {
	display: block;
	height: auto;
	min-height: 100%;

	background-color: main.$white;

	@include main.breakpoint-medium {
		display: flex;
	}

	.auth-template-container {
		display: flex;
		flex-basis: 60%;
		flex-direction: column;
		justify-content: center;

		width: 100%;
		max-width: 500px;
		margin: 0 auto;
		padding: 2rem;
	}

	.auth-template-header {
		margin-bottom: 1.5rem;
		text-align: center;
	}

	.auth-template-content {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.auth-template-footer {
		display: flex;
		align-items: flex-end;
		justify-content: flex-end;
		margin-top: 1rem;

		font-weight: 700;
		font-size: 1rem;
	}

	.auth-heading {
		margin: 0;

		font-weight: bold;
		font-size: 1.3rem;

		@include main.breakpoint-medium {
			font-size: 2.5rem;
		}
	}

	.auth-sub-heading {
		margin-bottom: 0;

		color: main.$dark-gray;
		font-weight: 600;
		font-size: 1rem;
		text-align: left;

		a {
			color: main.$teal;
			font-weight: 500;

			&:hover,
			&:focus {
				color: main.$sea-foam;
			}
		}
	}

	.contributors {
		flex-basis: 40%;
	}

	.github-link {
		margin: 1rem auto 0;

		color: unset;
		text-decoration: none;
	}

	.fa-github {
		margin-right: 4px;
	}
}

@include main.dark-theme {
	.auth-template {
		color: main.$off-white;
		background-color: main.$dark-asphalt;

		.auth-sub-heading {
			color: main.$light-gray;

			a {
				color: main.$sea-foam;

				&:hover,
				&:focus {
					color: main.$teal;
				}
			}
		}
	}
}
