/* Log in / lost password / reset password — Figma 4.5-login (4487:5502):
   title 48/50, 456px box (border #dedede, radius 8, padding 36 36 24,
   gap 36), 382px fields 50px high, labels shown inside the fields. */

.auth {
	padding: 60px 16px 120px;
}

.auth__title {
	margin: 0 0 60px;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 500;
	line-height: 50px;
	text-align: center;
}

.auth__box {
	width: 100%;
	max-width: 456px;
	margin: 0 auto;
	padding: 36px 36px 24px;
	border: 1px solid var(--rds-mid-grey);
	border-radius: 8px;
}

.auth__box .the_login_form {
	display: contents;
}

.auth__box form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
}

.auth__box .tml-field-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

/* labels live in the field as placeholders (assets/js/auth.js) */
.auth__box .tml-field-wrap:not(.tml-rememberme-wrap) > .tml-label.is-placeholder {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.auth__box .tml-field {
	width: 100%;
	height: 50px;
	padding: 0 18px;
	border: 1px solid rgba(66, 66, 66, 0.6);
	border-radius: 8px;
	background: var(--rds-white);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--rds-black);
}

.auth__box .tml-field::placeholder {
	color: var(--rds-black);
	opacity: 1;
}

.auth__box .tml-field:focus {
	outline: 2px solid var(--rds-black);
	outline-offset: 1px;
}

.auth__box .tml-pwd {
	position: relative;
}

.auth__box .tml-pwd .tml-field {
	padding-right: 58px;
}

.auth__box .tml-toggle-pwd {
	position: absolute;
	top: 50%;
	right: 17px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	padding: 0;
	border: 0;
	background: url("../img/icon-view-password.svg") no-repeat center / 24px 16px;
	cursor: pointer;
	opacity: 1;
}

.auth__box .tml-toggle-pwd.is-visible {
	opacity: 0.45;
}

.auth__box .tml-toggle-pwd .dashicons {
	display: none;
}

.auth__box .tml-rememberme-wrap {
	flex-direction: row;
	align-items: center;
	gap: 11px;
	margin-top: 12px; /* 36px gap above "Remember me" in the design */
}

.auth__box .tml-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--rds-black);
}

.auth__box .tml-rememberme-wrap .tml-label {
	font-size: 14px;
	line-height: 20px;
}

.auth__box .tml-submit-wrap {
	margin-top: 12px;
}

.auth__box .tml-button {
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: #989898;
	color: var(--rds-white);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

/* grey until the required fields are filled in (assets/js/auth.js) */
.auth__box form.is-ready .tml-button {
	background: var(--rds-black);
}

.auth__box form.is-ready .tml-button:hover {
	background: #777777;
}

.auth__box .tml-links {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-dark-grey);
}

.auth__box .tml-links a:hover {
	color: #777777;
}

.auth__box p,
.auth__box .tml-message,
.auth__box .tml-error,
.auth__box .tml-success {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
}

.auth__box .tml-alerts:not(:empty) {
	margin-bottom: 24px;
}

.auth__box .tml-alerts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.auth__box .tml-error {
	color: #c0392b;
}

.auth__box .tml-indicator-wrap,
.auth__box .tml-indicator_hint-wrap {
	font-size: 12px;
	line-height: 16px;
	color: var(--rds-dark-grey);
}

.auth__alt {
	margin: 24px 0 0;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	color: var(--rds-dark-grey);
}

.auth__alt a {
	color: var(--rds-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 560px) {
	.auth {
		padding: 36px 16px 72px;
	}

	.auth__title {
		margin-bottom: 36px;
		font-size: 36px;
		line-height: 40px;
	}

	.auth__box {
		padding: 24px 20px 20px;
	}
}

/* -- phone: 24px gutter and 42/48 title like the Figma _M pages -- */

@media (max-width: 600px) {
	.auth {
		padding: 36px 24px 72px;
	}

	.auth__title {
		font-size: 42px;
		line-height: 48px;
	}

	.auth__box {
		padding: 24px;
	}
}
