/* TSO Login Organizer — front forms, dashboard, profile */

.tsolo {
	max-width: 28rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	/* Let native controls follow the page (theme day/night toggles). */
	color-scheme: light dark;
}

.tsolo-form-heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.3;
	text-align: center;
}

.tsolo-brand-logo {
	text-align: center;
	margin: 0 0 1rem;
}

.tsolo-brand-logo img {
	max-width: 180px;
	height: auto;
}

.tsolo *,
.tsolo *::before,
.tsolo *::after {
	box-sizing: border-box;
}

/* Nested blocks (dashboard wraps links) keep full parent width */
.tsolo .tsolo {
	max-width: 100%;
}

.tsolo-form .tsolo-field {
	margin: 0 0 1rem;
}

.tsolo-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	line-height: 1.35;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

/* 16px+ avoids iOS Safari auto-zoom on focus.
 * Transparent + inherit keeps fields readable when the theme is in night mode
 * (hardcoded #fff + theme light text = invisible). */
.tsolo-form .input,
.tsolo-form input[type="text"],
.tsolo-form input[type="email"],
.tsolo-form input[type="password"],
.tsolo-form input[type="search"],
.tsolo-form input[type="tel"],
.tsolo-form input:not([type]),
.tsolo-form textarea,
.tsolo-form select {
	width: 100%;
	max-width: 100%;
	display: block;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	line-height: 1.4;
	border: 1px solid rgba(127, 127, 127, 0.45);
	border-radius: 4px;
	background-color: transparent;
	color: inherit;
	caret-color: currentColor;
}

.tsolo-form input[type="checkbox"],
.tsolo-form input[type="radio"] {
	width: auto;
	max-width: none;
	display: inline-block;
	margin: 0 0.4rem 0 0;
	vertical-align: middle;
}

.tsolo-form input[type="file"] {
	width: 100%;
	max-width: 100%;
	display: block;
	font-size: 0.95rem;
	padding: 0.35rem 0;
}

.tsolo-field-rememberme label,
.tsolo-field-2fa-enable > label {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-weight: 500;
}

.tsolo-field-rememberme input,
.tsolo-field-2fa-enable > label > input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.tsolo-button,
.tsolo-form button[type="submit"],
.tsolo-form input[type="submit"] {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	border-radius: 4px;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
}

.tsolo-button:hover,
.tsolo-form button[type="submit"]:hover,
.tsolo-form input[type="submit"]:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.tsolo-alert {
	padding: 0.75rem 1rem;
	margin: 0 0 1rem;
	border-left: 4px solid #b32d2e;
	background: rgba(179, 45, 46, 0.12);
	color: inherit;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.tsolo-alert--message {
	border-left-color: #00a32a;
	background: rgba(0, 163, 42, 0.12);
}

/* Flat nav (no ul/li) so theme widget list styles cannot inflate each row.
 * Do not force light greys — theme night mode keeps light link text, and a
 * white chip background made Escritorio / Perfil / Salir unreadable. */
.tsolo-links {
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 0.95em;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.tsolo-links--inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	margin-top: 0.75rem;
}

.tsolo-links a {
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 0.35rem 0.55rem;
	min-height: 0;
	line-height: 1.25;
	text-decoration: none;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 3px;
	background: transparent;
	color: inherit;
	word-wrap: break-word;
}

.tsolo-links--inline a {
	display: inline-block;
	padding: 0.2rem 0;
	border: 0;
	background: transparent;
	text-decoration: underline;
}

.tsolo-links a:hover,
.tsolo-links a:focus {
	background: rgba(127, 127, 127, 0.14);
	border-color: currentColor;
	outline: none;
}

.tsolo-links--inline a:hover,
.tsolo-links--inline a:focus {
	background: transparent;
	border-color: transparent;
}

.tsolo-dashboard {
	text-align: center;
	padding: 0;
	margin: 0;
}

.tsolo-dashboard-avatar {
	margin: 0 0 0.3rem;
	line-height: 0;
}

.tsolo-dashboard-avatar img {
	border-radius: 50%;
	max-width: 56px;
	height: auto;
}

.tsolo-dashboard-greeting {
	margin: 0 0 0.35rem;
	padding: 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	word-wrap: break-word;
}

.tsolo-dashboard .tsolo-links {
	text-align: left;
	margin-top: 0.2rem;
}

/* Beat common theme .widget li / .widget a vertical rhythm. */
.widget .tsolo-dashboard .tsolo-links,
.widget_tsolo_login_organizer .tsolo-links {
	gap: 0.1rem;
}

.widget .tsolo-dashboard .tsolo-links a,
.widget_tsolo_login_organizer .tsolo-links a {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0.3rem;
	padding-bottom: 0.3rem;
}

.tsolo-profile .description,
.tsolo-avatar-status,
.tsolo-2fa-help {
	margin: 0.35rem 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.45;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.tsolo-avatar-preview {
	display: block;
	margin: 0 0 0.5rem;
}

.tsolo-avatar-preview img {
	display: block;
	border-radius: 4px;
	max-width: 96px;
	height: auto;
}

.tsolo-favorites ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tsolo-favorites li {
	margin: 0 0 0.5rem;
}

.tsolo-favorites a {
	display: block;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	text-decoration: none;
	word-wrap: break-word;
}

.tsolo-hide-menu-item {
	display: none !important;
}

#pass-strength-result {
	padding: 0.4rem 0.6rem;
	margin: 0.5rem 0;
	background: rgba(127, 127, 127, 0.12);
	color: inherit;
	word-wrap: break-word;
}

.tsolo-social {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(127, 127, 127, 0.35);
}

.tsolo-social a,
.tsolo-social .tsolo-social-btn {
	display: block;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0.7rem 0.85rem;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	border: 1px solid rgba(127, 127, 127, 0.35);
	background: transparent;
	color: inherit;
}

/* Room for theme floating “Menú” / cookie widgets on small screens */
@media (max-width: 782px) {
	.tsolo {
		max-width: 100%;
		padding-bottom: 4.5rem;
	}

	.tsolo-form .tsolo-field {
		margin-bottom: 1.1rem;
	}

	.tsolo-favorites a,
	.tsolo-button,
	.tsolo-form button[type="submit"] {
		min-height: 2.85rem;
	}

	.tsolo-dashboard .tsolo-links a {
		min-height: 0;
		padding: 0.35rem 0.55rem;
	}
}

@media (min-width: 783px) {
	.tsolo-button,
	.tsolo-form button[type="submit"],
	.tsolo-form input[type="submit"] {
		width: auto;
		min-width: 10rem;
	}
}
