/**
 * TLA Auth
 * Tokens are printed inline from the Design tab, so nothing here needs editing
 * to rebrand. Override individual rules with the Custom CSS box or your theme.
 */

.tla-auth {
	--tla-auth-shadow: 0 24px 60px rgba(6, 20, 40, 0.18);
	font-family: var(--tla-auth-font);
	color: var(--tla-auth-text);
	box-sizing: border-box;
}

.tla-auth *,
.tla-auth *::before,
.tla-auth *::after {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------- canvases */

.tla-auth--canvas-navy,
.tla-auth--canvas-light,
.tla-auth--canvas-image {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 72px 20px;
	min-height: 100%;
}

.tla-auth--canvas-navy {
	background: radial-gradient(120% 120% at 50% 0%, var(--tla-auth-navy) 0%, var(--tla-auth-navy-deep) 100%);
}

.tla-auth--canvas-light {
	background: #F4F6FA;
}

.tla-auth--canvas-image {
	background-image: linear-gradient(rgba(6, 20, 40, 0.78), rgba(6, 20, 40, 0.78)), var(--tla-auth-bg-image);
	background-size: cover;
	background-position: center;
}

.tla-auth--plain {
	padding: 0;
}

/* ------------------------------------------------------------------ layout */

.tla-auth__inner {
	margin: 0 auto;
	max-width: var(--tla-auth-card-width);
}

.tla-auth--split .tla-auth__inner {
	max-width: 940px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--tla-auth-card);
	border-radius: var(--tla-auth-radius);
	overflow: hidden;
	box-shadow: var(--tla-auth-shadow);
}

.tla-auth--split .tla-auth__card {
	box-shadow: none;
	border-radius: 0;
}

.tla-auth__brand {
	background: linear-gradient(160deg, var(--tla-auth-navy) 0%, var(--tla-auth-navy-deep) 100%);
	color: #fff;
	padding: 48px 40px;
	display: flex;
	align-items: center;
	position: relative;
}

.tla-auth__brand::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--tla-auth-gold);
}

.tla-auth__brand-logo {
	height: var(--tla-auth-logo-height);
	width: auto;
	margin-bottom: 28px;
	display: block;
}

.tla-auth__brand-heading {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
}

.tla-auth__brand-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------------- card */

.tla-auth__card {
	background: var(--tla-auth-card);
	border-radius: var(--tla-auth-radius);
	padding: 40px 38px 34px;
	box-shadow: var(--tla-auth-shadow);
}

.tla-auth--plain .tla-auth__card {
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.tla-auth__head {
	margin-bottom: 26px;
}

.tla-auth__logo {
	height: var(--tla-auth-logo-height);
	width: auto;
	display: block;
	margin: 0 auto 24px;
}

.tla-auth__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tla-auth-gold);
	margin-bottom: 10px;
}

.tla-auth__title {
	margin: 0 0 8px;
	font-size: 27px;
	line-height: 1.22;
	font-weight: 600;
	color: var(--tla-auth-text);
}

.tla-auth__subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tla-auth-muted);
}

/* ------------------------------------------------------------------ fields */

.tla-auth__field {
	margin-bottom: 18px;
}

.tla-auth__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tla-auth-muted);
	margin-bottom: 8px;
}

.tla-auth__input {
	width: 100%;
	padding: 14px 16px;
	font-size: 15px;
	font-family: inherit;
	color: var(--tla-auth-text);
	background: #fff;
	border: 1px solid var(--tla-auth-border);
	border-radius: calc(var(--tla-auth-radius) - 6px);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tla-auth__input:focus {
	outline: none;
	border-color: var(--tla-auth-gold);
	box-shadow: 0 0 0 3px rgba(200, 164, 77, 0.22);
}

.tla-auth__password {
	position: relative;
}

.tla-auth__password .tla-auth__input {
	padding-right: 70px;
}

.tla-auth__reveal {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--tla-auth-muted);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 8px 10px;
	cursor: pointer;
}

.tla-auth__reveal:hover {
	color: var(--tla-auth-navy);
}

.tla-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 6px 0 22px;
	font-size: 14px;
}

.tla-auth__row--center {
	justify-content: center;
	margin: 20px 0 0;
}

.tla-auth__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tla-auth-muted);
	cursor: pointer;
}

.tla-auth__check input {
	width: 16px;
	height: 16px;
	accent-color: var(--tla-auth-gold);
}

.tla-auth__link {
	color: var(--tla-auth-navy);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.tla-auth__link:hover {
	color: var(--tla-auth-gold);
	border-bottom-color: var(--tla-auth-gold);
}

/* ----------------------------------------------------------------- buttons */

.tla-auth__button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 15px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border: 1px solid transparent;
	border-radius: calc(var(--tla-auth-radius) - 6px);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.tla-auth--btn-gold .tla-auth__button {
	background: var(--tla-auth-gold);
	color: var(--tla-auth-navy);
}

.tla-auth--btn-gold .tla-auth__button:hover {
	background: var(--tla-auth-gold-soft);
	color: var(--tla-auth-navy);
}

.tla-auth--btn-navy .tla-auth__button {
	background: var(--tla-auth-navy);
	color: #fff;
}

.tla-auth--btn-navy .tla-auth__button:hover {
	background: var(--tla-auth-navy-deep);
	color: #fff;
}

.tla-auth--btn-outline .tla-auth__button {
	background: transparent;
	color: var(--tla-auth-navy);
	border-color: var(--tla-auth-gold);
}

.tla-auth--btn-outline .tla-auth__button:hover {
	background: var(--tla-auth-gold);
}

.tla-auth__button:active {
	transform: translateY(1px);
}

.tla-auth__button--ghost {
	background: transparent;
	color: var(--tla-auth-navy);
	border-color: var(--tla-auth-border);
}

/* ----------------------------------------------------------------- notices */

.tla-auth__notice {
	border-radius: calc(var(--tla-auth-radius) - 6px);
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.55;
	border-left: 3px solid transparent;
}

.tla-auth__notice p {
	margin: 0 0 6px;
}

.tla-auth__notice p:last-child {
	margin-bottom: 0;
}

.tla-auth__notice--error {
	background: rgba(179, 38, 30, 0.07);
	border-left-color: var(--tla-auth-error);
	color: var(--tla-auth-error);
}

.tla-auth__notice--success {
	background: rgba(30, 123, 79, 0.08);
	border-left-color: var(--tla-auth-success);
	color: var(--tla-auth-success);
}

.tla-auth__notice--info {
	background: rgba(11, 30, 60, 0.05);
	border-left-color: var(--tla-auth-navy);
	color: var(--tla-auth-navy);
}

/* ------------------------------------------------------------ strength bar */

.tla-auth__meter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.tla-auth__meter-bar {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--tla-auth-border);
	overflow: hidden;
}

.tla-auth__meter-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--tla-auth-gold);
	transition: width 0.2s ease, background 0.2s ease;
}

.tla-auth__meter-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tla-auth-muted);
	min-width: 52px;
	text-align: right;
}

.tla-auth__meter[data-level="1"] .tla-auth__meter-bar span { width: 25%; background: var(--tla-auth-error); }
.tla-auth__meter[data-level="2"] .tla-auth__meter-bar span { width: 50%; background: #D9922B; }
.tla-auth__meter[data-level="3"] .tla-auth__meter-bar span { width: 75%; background: var(--tla-auth-gold); }
.tla-auth__meter[data-level="4"] .tla-auth__meter-bar span { width: 100%; background: var(--tla-auth-success); }

/* ------------------------------------------------------------------ footer */

.tla-auth__foot {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--tla-auth-gold);
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.04em;
	color: var(--tla-auth-muted);
	text-align: center;
}

.tla-auth__note {
	margin-top: 18px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--tla-auth-muted);
	text-align: center;
}

.tla-auth__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------- [tla_lost_password_simple] */

/* Deliberately light: inputs and the button take the theme's own styling.
   Target #lostpasswordform or .tla-auth-simple to change it. */

.tla-auth-simple__field label {
	display: block;
	margin-bottom: 6px;
}

.tla-auth-simple__field input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 860px) {
	.tla-auth--split .tla-auth__inner {
		grid-template-columns: 1fr;
		max-width: var(--tla-auth-card-width);
	}

	.tla-auth__brand {
		padding: 34px 30px;
	}

	.tla-auth__brand::after {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		height: 3px;
	}
}

@media (max-width: 520px) {
	.tla-auth--canvas-navy,
	.tla-auth--canvas-light,
	.tla-auth--canvas-image {
		padding: 40px 16px;
	}

	.tla-auth__card {
		padding: 30px 22px 26px;
	}

	.tla-auth__title {
		font-size: 23px;
	}

	.tla-auth__row {
		flex-direction: column;
		align-items: flex-start;
	}
}
