/* ------------------------------------------------------------------------------
*
*  # Adonara login page
*
* ---------------------------------------------------------------------------- */

.adn-login {
	--adn-primary: #2f343a;
	--adn-secondary: #caab7f;
	--adn-neutral-50: #f5f7f9;
	--adn-neutral-600: #979899;
	--adn-border: #d1d5da;
	--adn-danger: #e53935;

	position: relative;
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	background-color: var(--adn-primary);
	font-family: 'Inter', sans-serif;
	color: #000;
	-webkit-font-smoothing: antialiased;
}

.adn-login *,
.adn-login *::before,
.adn-login *::after {
	box-sizing: border-box;
}

/* Background photo fading into primary */
.adn-login__bg {
	position: fixed;
	inset: 0;
	background: url('../images/login/login-bg.jpg') center / cover no-repeat;
}

.adn-login__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(47, 52, 58, 0) 26.124%, #2f343a 64.815%);
}

.adn-login__brand {
	position: fixed;
	top: 50%;
	left: 29.6%;
	transform: translate(-50%, -50%);
	width: 267.88px;
	height: 148.01px;
}

.adn-login__brand img {
	display: block;
	width: 267.88px;
	height: 148.01px;
}

.adn-login__wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 16px;
}

/* Card */
.adn-login__card {
	width: 100%;
	max-width: 447px;
	padding: 60px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
}

.adn-login__logo {
	display: block;
	width: 132.121px;
	height: 73.0006px;
}

.adn-login__body {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.adn-login__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 18px;
}

.adn-login__subtitle {
	margin: 0;
	font-size: 12px;
	line-height: 18px;
	color: var(--adn-neutral-600);
}

.adn-login__form {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
}

.adn-login__fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.adn-login__inputs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Inputs */
.adn-login__field {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px;
	background: var(--adn-neutral-50);
	border: 1px solid var(--adn-border);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.adn-login__field:focus-within {
	border-color: var(--adn-secondary);
	box-shadow: 0 0 0 3px rgba(202, 171, 127, 0.2);
}

.adn-login__field.has-error {
	border-color: var(--adn-danger);
}

.adn-login__field input {
	flex: 1 1 0;
	min-width: 0;
	height: 47px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	line-height: 21px;
	color: #000;
}

.adn-login__field input::placeholder {
	color: var(--adn-neutral-600);
	opacity: 1;
}

.adn-login__field input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--adn-neutral-50) inset;
}

.adn-login__toggle {
	display: flex;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.adn-login__toggle img {
	display: block;
	width: 16px;
	height: 16px;
}

.adn-login__toggle[aria-pressed="true"] img {
	opacity: .45;
}

.adn-login__error {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--adn-danger);
}

/* Remember me */
.adn-login__remember {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
	cursor: pointer;
	user-select: none;
}

.adn-login__remember input {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	background: var(--adn-neutral-50);
	border: 1px solid var(--adn-border);
	border-radius: 4px;
	cursor: pointer;
}

.adn-login__remember input:checked {
	background: var(--adn-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
	border-color: var(--adn-secondary);
}

.adn-login__remember input:focus-visible {
	outline: 2px solid var(--adn-secondary);
	outline-offset: 2px;
}

/* Button */
.adn-login__submit {
	width: 100%;
	padding: 15px 16px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--adn-secondary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	color: #fff;
	cursor: pointer;
	transition: filter .15s ease;
}

.adn-login__submit:hover {
	filter: brightness(.95);
}

.adn-login__submit:focus-visible {
	outline: 2px solid var(--adn-primary);
	outline-offset: 2px;
}

.adn-login__alert {
	padding: 10px 14px;
	border-radius: 6px;
	background: #fdecea;
	font-size: 12px;
	line-height: 18px;
	color: var(--adn-danger);
}

.adn-login__footer {
	margin: 0;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.adn-login__footer strong {
	font-weight: 600;
}

/* Desktop: logo on the photo, card on the right like the design */
@media (min-width: 1200px) {
	.adn-login__wrapper {
		justify-content: flex-start;
		padding-left: calc(50% + 356.5px - 223.5px);
	}
}

@media (max-width: 1199.98px) {
	.adn-login__brand {
		display: none;
	}
}

@media (max-width: 480px) {
	.adn-login__card {
		padding: 40px 24px;
		gap: 40px;
	}
}
