/* -----------------------------------------------------------------------
   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: rgba(231, 76, 60, 0.12);
	border: 1px solid rgba(231, 76, 60, 0.4);
	color: var(--ttm-color-error);
}

.ttm-notice--success,
.ttm-form__message.ttm-notice--success {
	background: rgba(39, 174, 96, 0.12);
	border: 1px solid rgba(39, 174, 96, 0.4);
	color: var(--ttm-color-success);
}

.ttm-notice--warning {
	background: rgba(243, 156, 18, 0.12);
	border: 1px solid rgba(243, 156, 18, 0.4);
	color: var(--ttm-color-warning, #f39c12);
	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: rgba(59, 130, 246, 0.12);
	border: 1px solid rgba(147, 197, 253, 0.4);
	color: #93c5fd;
	padding: 0.75rem 1rem;
	border-radius: var(--ttm-radius);
	font-size: 0.875rem;
}

/* Light mode — notices */
html.light-mode .ttm-notice--error,
html.light-mode .ttm-form__message.ttm-notice--error {
	background: #fdf0f0;
	border-color: var(--ttm-color-error);
	color: var(--ttm-color-error);
}

html.light-mode .ttm-notice--success,
html.light-mode .ttm-form__message.ttm-notice--success {
	background: #f0fdf4;
	border-color: var(--ttm-color-success);
	color: var(--ttm-color-success);
}

html.light-mode .ttm-notice--warning {
	background: #fffbeb;
	border-color: #f59e0b;
	color: #92400e;
}

html.light-mode .ttm-notice--info {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1e40af;
}


.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;
}
