/* -----------------------------------------------------------------------
   Auth pages (connexion, inscription, reset)
   ----------------------------------------------------------------------- */

.ttm-container--narrow {
	max-width: 480px;
}

.ttm-auth-wrap {
	padding: 2rem 0;
}

.ttm-auth__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: var(--ttm-color-text);
}

.ttm-auth__desc {
	font-size: 0.9rem;
	color: var(--ttm-color-muted);
	margin: 0 0 1rem;
	line-height: 1.6;
}

.ttm-auth__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	gap: 0.75rem;
}

.ttm-link {
	font-size: 0.875rem;
	color: var(--ttm-color-primary);
	text-decoration: none;
}

.ttm-link:hover {
	text-decoration: underline;
}

.ttm-link-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: inherit;
	color: var(--ttm-color-primary);
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}

.ttm-form__hint {
	display: block;
	font-size: 0.75rem;
	color: var(--ttm-color-muted);
	font-weight: 400;
	margin-top: 2px;
}

.ttm-form__message {
	padding: 0.75rem 1rem;
	border-radius: var(--ttm-radius);
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.ttm-notice--error,
.ttm-form__message.ttm-notice--error {
	background: #fdf0f0;
	border: 1px solid var(--ttm-color-error);
	color: var(--ttm-color-error);
}

.ttm-notice--success,
.ttm-form__message.ttm-notice--success {
	background: #f0fdf4;
	border: 1px solid var(--ttm-color-success);
	color: var(--ttm-color-success);
}

.ttm-notice--warning {
	background: #fffbeb;
	border: 1px solid #f59e0b;
	color: #92400e;
	padding: 0.75rem 1rem;
	border-radius: var(--ttm-radius);
	font-size: 0.875rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.ttm-notice--warning[hidden] {
	display: none;
}

.ttm-notice--info {
	background: #eff6ff;
	border: 1px solid #93c5fd;
	color: #1e40af;
	padding: 0.75rem 1rem;
	border-radius: var(--ttm-radius);
	font-size: 0.875rem;
}

.ttm-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.ttm-input-wrap .ttm-form__input,
.ttm-input-wrap .ttm-input {
	flex: 1;
	padding-right: 2.5rem;
}

.ttm-toggle-pwd {
	position: absolute;
	right: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--ttm-color-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 100%;
}

.ttm-eye-icon {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	font-size: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ttm-toggle-pwd.is-revealed .ttm-eye-icon {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ttm-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	cursor: pointer;
	color: var(--ttm-color-muted);
}

/* Code reset mdp + settings */
.ttm-form__input--code,
.ttm-input--code {
	font-size: 1.5rem;
	letter-spacing: 0.5rem;
	text-align: center;
	font-family: monospace;
}
